-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAU: Further improvements to error handling
This commit adds a new custom exception, `FatalError`, which is raised when a fatal error occurs. This is used to catch all exceptions that should cause the script to exit, rather than calling sys.exit directly. Additionally, identify better when lack of VPN connection is the cause of an error, and correctly report this to the user. There are still some hand-wavey 'unexpected error' messages, but in these cases, the stack trace is printed, which will hopefully better help diagnose the issue. Finally, stop importing the specific `botocore.exceptions` exceptions individually, as it was becoming unwieldy.
- Loading branch information
Showing
1 changed file
with
45 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters