Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 4649:fc513bd18167
Use "raise E, V, T" instead of "raise E(V).with_traceback(T)" (with_traceback is not available in Python 2).
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Sat, 28 Jul 2012 18:12:00 +0200 |
| parents | e645820e8556 |
| children | d7ac6c7bc371 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Sat Jul 28 17:41:20 2012 +0200 +++ b/roundup/cgi/client.py Sat Jul 28 18:12:00 2012 +0200 @@ -1114,7 +1114,7 @@ # receive an error message, and the adminstrator will # receive a traceback, albeit with less information # than the one we tried to generate above. - raise exc_info[0](exc_info[1]).with_traceback(exc_info[2]) + raise exc_info[0], exc_info[1], exc_info[2] # these are the actions that are available actions = (
