Custom exceptions now derive from Exception instead of BaseException, so they are properly caught when catching Exception.

pull/7/head
Ferry Boender 10 years ago
parent 55f3253453
commit b0232b9e57
  1. 6
      src/scriptform.py

@ -145,15 +145,15 @@ html_submit_response = u'''
''' '''
class ValidationError(BaseException): class ValidationError(Exception):
pass pass
class ScriptFormError(BaseException): class ScriptFormError(Exception):
pass pass
class DaemonError(BaseException): class DaemonError(Exception):
pass pass

Loading…
Cancel
Save