Skip to content

Commit

Permalink
Fix to catch-all exception handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
jasujm committed May 12, 2020
1 parent c5deda2 commit 154d930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/enumecg/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def cli(file, documentation, primary_type, value_type):
"""
try:
enum = yaml.safe_load(file)
except:
except Exception:
_report_error_and_fail(f"Failed to load {file.name}")

try:
Expand All @@ -70,7 +70,7 @@ def cli(file, documentation, primary_type, value_type):
primary_type=primary_type,
value_type=value_type,
)
except:
except Exception:
_report_error_and_fail(f"Failed to generate code from {file.name}")

click.echo(output)

0 comments on commit 154d930

Please sign in to comment.