raise Exception, "text" --> raise Exception("text")
To have the code work in python3, we need to convert all occurences of raise Exception, "text" to be proper functions. This style also adheres to PEP8. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
@ -328,7 +328,9 @@ class IMAPFolder(BaseFolder):
|
||||
self.ui.debug('imap', 'savemessage_searchforheader: matchinguids now ' + \
|
||||
repr(matchinguids))
|
||||
if len(matchinguids) != 1 or matchinguids[0] == None:
|
||||
raise ValueError, "While attempting to find UID for message with header %s, got wrong-sized matchinguids of %s" % (headername, str(matchinguids))
|
||||
raise ValueError("While attempting to find UID for message with "
|
||||
"header %s, got wrong-sized matchinguids of %s" %\
|
||||
(headername, str(matchinguids)))
|
||||
matchinguids.sort()
|
||||
return long(matchinguids[0])
|
||||
|
||||
|
Reference in New Issue
Block a user