From 5d053f2ca8db6b239de65804681137e2c1c468f8 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 30 Oct 2017 00:22:34 -0400 Subject: [PATCH] Added Abort exception init for passing message --- src/main/misc/exceptions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/misc/exceptions.py b/src/main/misc/exceptions.py index 3cf4c9d..9a7f737 100644 --- a/src/main/misc/exceptions.py +++ b/src/main/misc/exceptions.py @@ -106,7 +106,8 @@ class CheckFail(Exception): class Abort(Exception): - pass + def __init__(self, message=None): + self.message = message class Continue(Exception):