File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -293,14 +293,19 @@ def handle(self, info=None):
293
293
if self .logdir is not None :
294
294
suffix = ['.txt' , '.html' ][self .format == "html" ]
295
295
(fd , path ) = tempfile .mkstemp (suffix = suffix , dir = self .logdir )
296
+
296
297
try :
297
298
file = os .fdopen (fd , 'w' )
298
299
file .write (doc )
299
300
file .close ()
300
- msg = '<p> %s contains the description of this error.' % path
301
+ msg = '%s contains the description of this error.' % path
301
302
except :
302
- msg = '<p> Tried to save traceback to %s, but failed.' % path
303
- self .file .write (msg + '\n ' )
303
+ msg = 'Tried to save traceback to %s, but failed.' % path
304
+
305
+ if self .format == 'html' :
306
+ self .file .write ('<p>%s</p>\n ' % msg )
307
+ else :
308
+ self .file .write (msg + '\n ' )
304
309
try :
305
310
self .file .flush ()
306
311
except : pass
Original file line number Diff line number Diff line change @@ -699,6 +699,7 @@ Mark Mc Mahon
699
699
Gordon McMillan
700
700
Caolan McNamara
701
701
Andrew McNamara
702
+ Jeff McNeil
702
703
Craig McPheeters
703
704
Lambert Meertens
704
705
Bill van Melle
Original file line number Diff line number Diff line change @@ -132,6 +132,9 @@ Core and Builtins
132
132
Library
133
133
-------
134
134
135
+ - Issue #12890: cgitb no longer prints spurious <p> tags in text
136
+ mode when the logdir option is specified.
137
+
135
138
- Issue #16250: Fix URLError invocation with proper args.
136
139
137
140
- Issue #16305: Fix a segmentation fault occurring when interrupting
You can’t perform that action at this time.
0 commit comments