From 8b0d3d5bb38289a7ef9fa215f4b3db6c83d94014 Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 20 Oct 2017 16:25:12 -0400 Subject: [PATCH] Added Execute and Evaluate exceptions to be caught in the command --- src/main/misc/exceptions.py | 60 +++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/src/main/misc/exceptions.py b/src/main/misc/exceptions.py index a782fc4..3cf4c9d 100644 --- a/src/main/misc/exceptions.py +++ b/src/main/misc/exceptions.py @@ -2,104 +2,112 @@ base = '⚠️ **An internal error has occurred.** This has been reported to my async def send_error(ctx, error): - await ctx.send('{}\n```\n{}```'.format(base, error)) + await ctx.send('{}\n```\n{}```'.format(base, error)) + + +class Execute(Exception): + pass + + +class Evaluate(Exception): + pass class Left(Exception): - pass + pass class Right(Exception): - pass + pass class Save(Exception): - pass + pass class GoTo(Exception): - pass + pass class Exists(Exception): - pass + pass class MissingArgument(Exception): - pass + pass class FavoritesNotFound(Exception): - pass + pass class PostError(Exception): - pass + pass class ImageError(Exception): - pass + pass class MatchError(Exception): - pass + pass class TagBlacklisted(Exception): - pass + pass class BoundsError(Exception): - pass + pass class TagBoundsError(Exception): - pass + pass class TagExists(Exception): - pass + pass class TagError(Exception): - pass + pass class FlagError(Exception): - pass + pass class BlacklistError(Exception): - pass + pass class NotFound(Exception): - pass + pass class Timeout(Exception): - pass + pass class InvalidVideoFile(Exception): - pass + pass class MissingAttachment(Exception): - pass + pass class TooManyAttachments(Exception): - pass + pass class CheckFail(Exception): - pass + pass class Abort(Exception): - pass + pass class Continue(Exception): - pass + pass