diff options
author | 2020-04-08 12:53:35 +0300 | |
---|---|---|
committer | 2020-04-08 12:53:35 +0300 | |
commit | 382c036d3c46acedd1786cfdc99a67fabc616e7d (patch) | |
tree | 09f1aa774209383c2a206db8de877e84d39afa39 /bot/exts/evergreen/minesweeper.py | |
parent | (Minesweeper): Reverted KeyError catching in reveal command, made error handl... (diff) |
(Minesweeper): Created new exception `UserNotPlayingError`.
Diffstat (limited to 'bot/exts/evergreen/minesweeper.py')
-rw-r--r-- | bot/exts/evergreen/minesweeper.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bot/exts/evergreen/minesweeper.py b/bot/exts/evergreen/minesweeper.py index 776501a9..f08bad6f 100644 --- a/bot/exts/evergreen/minesweeper.py +++ b/bot/exts/evergreen/minesweeper.py @@ -29,6 +29,12 @@ MESSAGE_MAPPING = { log = logging.getLogger(__name__) +class UserNotPlayingError(Exception): + """Will raised when user try to use game commands when not playing.""" + + pass + + class CoordinateConverter(commands.Converter): """Converter for Coordinates.""" |