diff detectors/newissuecopy.py @ 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 39c9f69c3f31
children
line wrap: on
line diff
--- a/detectors/newissuecopy.py	Thu Aug 24 17:55:02 2017 -0400
+++ b/detectors/newissuecopy.py	Thu Aug 24 22:21:37 2017 -0400
@@ -18,8 +18,8 @@
             cl.send_message(nodeid, msgid, change_note,
                             ['team@team.host'],
                             crypt=encrypt)
-        except roundupdb.MessageSendError, message:
-            raise roundupdb.DetectorError, message
+        except roundupdb.MessageSendError as message:
+            raise roundupdb.DetectorError(message)
 
 def init(db):
     db.issue.react('create', newissuecopy)

Roundup Issue Tracker: http://roundup-tracker.org/