Remove extraneous noqa E722 comment
E722 is "Do not use bare except, specify exception instead" but except json.JSONDecodeError is not a bare exceptpull/905/head
parent
a91ef56954
commit
5ff7fc340b
|
@ -45,7 +45,7 @@ def fix_json(json_string: str, schema: str) -> str:
|
|||
try:
|
||||
json.loads(result_string) # just check the validity
|
||||
return result_string
|
||||
except json.JSONDecodeError: # noqa: E722
|
||||
except json.JSONDecodeError:
|
||||
# Get the call stack:
|
||||
# import traceback
|
||||
# call_stack = traceback.format_exc()
|
||||
|
|
Loading…
Reference in New Issue