From 165d134b6de33c2b5392e2e172b54526bb7a0f95 Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 31 Dec 2017 21:26:47 -0500 Subject: [PATCH] Added message attribute to Save exception --- src/misc/exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/exceptions.py b/src/misc/exceptions.py index ae9af19..965ebe9 100644 --- a/src/misc/exceptions.py +++ b/src/misc/exceptions.py @@ -39,9 +39,9 @@ class Right(Exception): class Save(Exception): - def __init__(self, user=None): + def __init__(self, user=None, message=None): self.user = user - + self.message = message class GoTo(Exception): pass