aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/exceptions.py
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-08 20:01:17 +0300
committerGravatar ks129 <[email protected]>2020-04-08 20:01:17 +0300
commitb08c34b2009c0440da843b1405c98b104acbf173 (patch)
tree1817e7f81481c913a53f68c01d3a03ddebb7de86 /bot/utils/exceptions.py
parent(Minesweeper): Added raising `UserNotPlayingError`, attached flag command to ... (diff)
(Minesweeper): Moved `UserNotPlayingError` to `bot.utils.exceptions`, removed definition in extensions. Removed custom error handler.
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