Skip to content

Commit

Permalink
fix: Exception handling for annotation rule files.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertWeichselbraun committed Feb 17, 2024
1 parent 35626dd commit 942c4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inscriptis/cli/inscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def cli():
try:
with Path(args.annotation_rules).open() as f:
annotation_rules = load(f)
except IOError:
except (IOError, FileNotFoundError, PermissionError):
print(
"ERROR: Cannot open annotation rule file '{0}'.".format(
args.annotation_rules
Expand Down

0 comments on commit 942c4c7

Please sign in to comment.