1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 14:27:27 +00:00

Converted appropriate exceptions to inherit CommandError

This commit is contained in:
Myned 2017-11-08 22:33:27 -05:00
parent 918a2229db
commit 9ed2c0a0ce

View file

@ -1,3 +1,5 @@
from discord.ext.commands import errors as errext
base = '\N{WARNING SIGN} **An internal error has occurred.** This has been reported to my master. \N{WOLF FACE}' base = '\N{WARNING SIGN} **An internal error has occurred.** This has been reported to my master. \N{WOLF FACE}'
@ -41,79 +43,79 @@ class GoTo(Exception):
pass pass
class Exists(Exception): class Exists(errext.CommandError):
pass pass
class MissingArgument(Exception): class MissingArgument(errext.CommandError):
pass pass
class FavoritesNotFound(Exception): class FavoritesNotFound(errext.CommandError):
pass pass
class PostError(Exception): class PostError(errext.CommandError):
pass pass
class ImageError(Exception): class ImageError(errext.CommandError):
pass pass
class MatchError(Exception): class MatchError(errext.CommandError):
pass pass
class TagBlacklisted(Exception): class TagBlacklisted(errext.CommandError):
pass pass
class BoundsError(Exception): class BoundsError(errext.CommandError):
pass pass
class TagBoundsError(Exception): class TagBoundsError(errext.CommandError):
pass pass
class TagExists(Exception): class TagExists(errext.CommandError):
pass pass
class TagError(Exception): class TagError(errext.CommandError):
pass pass
class FlagError(Exception): class FlagError(errext.CommandError):
pass pass
class BlacklistError(Exception): class BlacklistError(errext.CommandError):
pass pass
class NotFound(Exception): class NotFound(errext.CommandError):
pass pass
class Timeout(Exception): class Timeout(errext.CommandError):
pass pass
class InvalidVideoFile(Exception): class InvalidVideoFile(errext.CommandError):
pass pass
class MissingAttachment(Exception): class MissingAttachment(errext.CommandError):
pass pass
class TooManyAttachments(Exception): class TooManyAttachments(errext.CommandError):
pass pass
class CheckFail(Exception): class CheckFail(errext.CommandError):
pass pass