Skip to content

Commit

Permalink
Exception no longer thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
ximenesuk committed Mar 7, 2024
1 parent ef4cce5 commit 871b078
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ def check_ags(filename: Path, standard_AGS4_dictionary: Optional[str] = None) ->
description = f"UnicodeDecodeError: {err.reason}"
errors = {'File read error': [{'line': line_no, 'group': '', 'desc': description}]}
dictionary = ''
except AGS4.AGS4Error as err:
description = f"AGS4Error: {err}"
errors = {'File read error': [{'line': '-', 'group': '', 'desc': description}]}
dictionary = ''

# Discard unecessary summary from errors dictionary
errors.pop('Summary of data', None)
Expand Down

0 comments on commit 871b078

Please sign in to comment.