File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -813,7 +813,7 @@ def get_json_data_from_file(json_spec_filename, verbose=False):
813
813
result = json .load (data_file )
814
814
except ValueError as json_error_msg :
815
815
result = None
816
- print self . logger . log_line ( self . logger . LogType . ERROR , 'JSON file %s parsing failed. Reason: %s' % (json_spec_filename , json_error_msg ) )
816
+ print 'JSON file %s parsing failed. Reason: %s' % (json_spec_filename , json_error_msg )
817
817
# We can print where error occurred inside JSON file if we can parse exception msg
818
818
json_format_defect_pos = json_format_error_defect_pos (str (json_error_msg ))
819
819
if json_format_defect_pos is not None :
@@ -823,7 +823,7 @@ def get_json_data_from_file(json_spec_filename, verbose=False):
823
823
show_json_file_format_error (json_spec_filename , line , column )
824
824
825
825
except IOError as fileopen_error_msg :
826
- print self . logger . log_line ( self . logger . LogType . ERROR , 'JSON file %s not opened. Reason: %s' % (json_spec_filename , fileopen_error_msg ) )
826
+ print 'JSON file %s not opened. Reason: %s' % (json_spec_filename , fileopen_error_msg )
827
827
print
828
828
if verbose and result :
829
829
pp = pprint .PrettyPrinter (indent = 4 )
You can’t perform that action at this time.
0 commit comments