Skip to content

Commit 4344a82

Browse files
committed
Make DetectorError print something in python2
Also works for python3, we call __init__ of the base class. Hopefully fixes issue2551057.
1 parent 2ada1ed commit 4344a82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roundup/cgi/exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def __init__(self, subject, html, txt):
2929
self.subject = subject
3030
self.html = html
3131
self.txt = txt
32+
BaseException.__init__ (self, subject + ' ' + txt)
3233

3334
class FormError(ValueError):
3435
"""An 'expected' exception occurred during form parsing.

0 commit comments

Comments
 (0)