Skip to content

Commit

Permalink
fix: ignore click exceptions in error_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Mar 3, 2021
1 parent ad72ff4 commit 9544765
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beet/toolchain/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def error_handler(should_exit: bool = False, format_padding: int = 0):
except (click.Abort, KeyboardInterrupt):
click.echo()
message = "Aborted."
except (click.ClickException, click.exceptions.Exit):
raise
except Exception as exc:
message = "An unhandled exception occurred. This could be a bug."
exception = exc
Expand Down

0 comments on commit 9544765

Please sign in to comment.