Skip to content

Commit

Permalink
get around SystemExit not having a message()
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Nov 5, 2024
1 parent b28ac65 commit 4936f22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion irrd/scripts/irr_rpsl_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ def process_args(options):
# output something.
if "--help" in options:
raise XHelp("") from error
raise XArgumentError(f"Error processing command-line arguments: {error.message}") from error
message = error.message if hasattr(error, 'message') else ''
raise XArgumentError(f"Error processing command-line arguments: {message}") from error

if args.debug:
logger.setLevel(logging.DEBUG)
Expand Down

0 comments on commit 4936f22

Please sign in to comment.