Mercurial > p > roundup > code
diff doc/customizing.txt @ 5248:198b6e810c67
Use Python-3-compatible 'as' syntax for except statements
Many raise statements near these are also fixed.
So are two ivorrect file encoding marks ('utf8'->'utf-8').
| author | Eric S. Raymond <esr@thyrsus.com> |
|---|---|
| date | Thu, 24 Aug 2017 22:21:37 -0400 |
| parents | 15440504fb04 |
| children | cc79c0f1651d |
line wrap: on
line diff
--- a/doc/customizing.txt Thu Aug 24 17:55:02 2017 -0400 +++ b/doc/customizing.txt Thu Aug 24 22:21:37 2017 -0400 @@ -4473,8 +4473,8 @@ # send the message cl.send_message(nodeid, msgid, note, sendto) - except roundupdb.MessageSendError, message: - raise roundupdb.DetectorError, message + except roundupdb.MessageSendError as message: + raise roundupdb.DetectorError(message) Note that this is the standard nosy reaction code, with the small addition of:: @@ -4925,9 +4925,9 @@ return # otherwise raise an error - raise Unauthorized, \ + raise Unauthorized( \ 'Changes to nosy property not allowed via %s for this issue.'%\ - tx_Source + tx_Source) def init(db): ''' Install restrict_nosy_changes to run after other auditors.
