Skip to content

Commit

Permalink
Remove extraneous noqa E722 comment
Browse files Browse the repository at this point in the history
E722 is "Do not use bare except, specify exception instead" but
except json.JSONDecodeError
is not a bare except
  • Loading branch information
endolith committed Apr 16, 2023
1 parent a91ef56 commit 5ff7fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpt/json_fixes/auto_fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5ff7fc3

Please sign in to comment.