File tree Expand file tree Collapse file tree
remove-json-keys/src/remove_json_keys/lib/data
translate-messages/src/translate_messages/lib/data Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def is_valid(file_path, format='json'):
1919 try : json5 .loads (file_text ) ; return True
2020 except Exception : return False
2121 else :
22- raise ValueError (f"Unsupported format '{ format } '. Expected 'json' or 'json5'. " )
22+ raise ValueError (f"Unsupported format '{ format } '. Expected 'json' or 'json5'" )
2323
2424def read (file_path , encoding = 'utf-8' ):
2525 with open (file_path , 'r' , encoding = encoding ) as file :
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def is_valid(file_path, format='json'):
1717 try : json5 .loads (file_text ) ; return True
1818 except Exception : return False
1919 else :
20- raise ValueError (f"Unsupported format '{ format } '. Expected 'json' or 'json5'. " )
20+ raise ValueError (f"Unsupported format '{ format } '. Expected 'json' or 'json5'" )
2121
2222def read (file_path , encoding = 'utf-8' ):
2323 with open (file_path , 'r' , encoding = encoding ) as file :
You can’t perform that action at this time.
0 commit comments