aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/exceptions.py
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-04-08 18:15:24 +0100
committerGravatar GitHub <[email protected]>2020-04-08 18:15:24 +0100
commit30b73caa8244d43a1d48a9a4e652543844bbad4d (patch)
tree6b3a80dfcd00fcdf442495a161cad9032d5bbcd0 /bot/utils/exceptions.py
parentMerge pull request #392 from python-discord/fetch-devlog-channel (diff)
parent(Error Handler): Added `UserNotPlayingError` catching to error handler. (diff)
Merge pull request #396 from ks129/keyerrors-fix
* Add error handling for invalid APOD dates * Add error handling for non-existent minesweeper games
Diffstat (limited to 'bot/utils/exceptions.py')
-rw-r--r--bot/utils/exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/utils/exceptions.py b/bot/utils/exceptions.py
index 70c20e12..dc62debe 100644
--- a/bot/utils/exceptions.py
+++ b/bot/utils/exceptions.py
@@ -2,3 +2,9 @@ class BrandingError(Exception):
"""Exception raised by the BrandingManager cog."""
pass
+
+
+class UserNotPlayingError(Exception):
+ """Will raised when user try to use game commands when not playing."""
+
+ pass