Mercurial > p > roundup > code
diff roundup/cgi/exceptions.py @ 5264:32f95ec6bd8e
Python 2 and 3 support. Convert Exception into BaseException in core code.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 04 Sep 2017 21:56:49 -0400 |
| parents | 65fef7858606 |
| children | 07abc8d36940 |
line wrap: on
line diff
--- a/roundup/cgi/exceptions.py Mon Aug 28 22:23:32 2017 -0400 +++ b/roundup/cgi/exceptions.py Mon Sep 04 21:56:49 2017 -0400 @@ -6,7 +6,7 @@ from roundup.exceptions import LoginError, Unauthorised import cgi -class HTTPException(Exception): +class HTTPException(BaseException): pass class Redirect(HTTPException): @@ -18,7 +18,7 @@ class NotModified(HTTPException): pass -class DetectorError(Exception): +class DetectorError(BaseException): """Raised when a detector throws an exception. Contains details of the exception.""" def __init__(self, subject, html, txt): @@ -38,13 +38,13 @@ """ pass -class SendFile(Exception): +class SendFile(BaseException): """Send a file from the database.""" -class SendStaticFile(Exception): +class SendStaticFile(BaseException): """Send a static file from the instance html directory.""" -class SeriousError(Exception): +class SeriousError(BaseException): """Raised when we can't reasonably display an error message on a templated page.
