Skip to content

Commit b06b69e

Browse files
committed
Use "raise E, V, T" instead of "raise E(V).with_traceback(T)" (with_traceback is not available in Python 2).
1 parent 2f82f3c commit b06b69e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Features:
1111

1212
Fixed:
1313

14+
- "BaseException.with_traceback" is not available on Python 2, so use
15+
"raise E, V, T" instead of "raise E(V).with_traceback(T)". This change was
16+
originally introduced in 74476eaac38a. (Ezio Melotti)
1417
- issue2550759: Trailing punctuation is no longer included when URLs are
1518
converted to links. (Ezio Melotti)
1619
- issue2550574: Restore sample detectors removed in roundup 1.4.9

roundup/cgi/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ def renderContext(self):
11141114
# receive an error message, and the adminstrator will
11151115
# receive a traceback, albeit with less information
11161116
# than the one we tried to generate above.
1117-
raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
1117+
raise exc_info[0], exc_info[1], exc_info[2]
11181118

11191119
# these are the actions that are available
11201120
actions = (

0 commit comments

Comments
 (0)