diff options
Diffstat (limited to 'genmon-wttr.py')
| -rwxr-xr-x | genmon-wttr.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/genmon-wttr.py b/genmon-wttr.py index b9b3edd..04bf2a9 100755 --- a/genmon-wttr.py +++ b/genmon-wttr.py @@ -171,8 +171,9 @@ def main() -> None: weather_data = query_weather_data(args.location) post_process_weather_data(weather_data) print_genmon(weather_data) - except Exception as e: - logging.critical(e, exc_info=args.verbose) + except Exception: + if args.verbose: + raise sys.exit(1) |
