From b0232b9e57e426d26bff8c2d95976d4d37667f3b Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Sun, 19 Apr 2015 11:18:29 +0200 Subject: [PATCH] Custom exceptions now derive from Exception instead of BaseException, so they are properly caught when catching Exception. --- src/scriptform.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scriptform.py b/src/scriptform.py index 1909e67..6d037e3 100755 --- a/src/scriptform.py +++ b/src/scriptform.py @@ -145,15 +145,15 @@ html_submit_response = u''' ''' -class ValidationError(BaseException): +class ValidationError(Exception): pass -class ScriptFormError(BaseException): +class ScriptFormError(Exception): pass -class DaemonError(BaseException): +class DaemonError(Exception): pass