Mercurial > p > roundup > code
diff roundup/mailgw.py @ 6123:c177e7128dc9
issue2551083 Replace BaseException and Exception with RoundupException
issue2551083 - Replace BaseException and Exception as base classes
with new RoundupException (inheriting from Exception) for most roundup
exceptions.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 03 Apr 2020 16:18:59 -0400 |
| parents | a328f9e3307b |
| children | 80915fd9ad24 |
line wrap: on
line diff
--- a/roundup/mailgw.py Tue Mar 03 21:00:38 2020 -0500 +++ b/roundup/mailgw.py Fri Apr 03 16:18:59 2020 -0400 @@ -118,6 +118,8 @@ except ImportError: gpg = None +from exceptions import RoundupException + SENDMAILDEBUG = os.environ.get('SENDMAILDEBUG', '') @@ -129,17 +131,17 @@ pass -class MailUsageHelp(BaseException): +class MailUsageHelp(RoundupException): """ We need to send the help message to the user. """ pass -class Unauthorized(BaseException): +class Unauthorized(RoundupException): """ Access denied """ pass -class IgnoreMessage(BaseException): +class IgnoreMessage(RoundupException): """ A general class of message that we should ignore. """ pass
