-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #372 from Molrn/fix-uncaught-exceptions
fix: exceptions not caught with `except Exception as e:`
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
class ImproperlyConfigured(BaseException): | ||
class ImproperlyConfigured(Exception): | ||
"""Raise for incorrect configuration.""" | ||
|
||
pass | ||
|
||
|
||
class DependencyError(BaseException): | ||
class DependencyError(Exception): | ||
"""Raise for missing dependencies.""" | ||
|
||
pass | ||
|
||
|
||
class ConnectionError(BaseException): | ||
class ConnectionError(Exception): | ||
"""Raise for connection""" | ||
|
||
pass | ||
|
||
|
||
class OTPCodeError(BaseException): | ||
class OTPCodeError(Exception): | ||
"""Raise for invalid otp or not able to send it""" | ||
|
||
pass | ||
|
||
|
||
class SQLRemoveError(BaseException): | ||
class SQLRemoveError(Exception): | ||
"""Raise when not able to remove SQL""" | ||
|
||
pass | ||
|
||
|
||
class ExecutionError(BaseException): | ||
class ExecutionError(Exception): | ||
"""Raise when not able to execute Code""" | ||
|
||
pass | ||
|
||
|
||
class ValidationError(BaseException): | ||
class ValidationError(Exception): | ||
"""Raise for validations""" | ||
|
||
pass | ||
|
||
|
||
class APIError(BaseException): | ||
class APIError(Exception): | ||
"""Raise for API errors""" | ||
|
||
pass |