You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1209,7 +1209,7 @@
1209
1209
<li><strong>Also catches subclasses of the exception.</strong></li>
1210
1210
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'traceback.print_exc()'</span></code> to print the error message to stderr.</strong></li>
1211
1211
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'print(<name>)'</span></code> to print just the cause of the exception (its arguments).</strong></li>
1212
-
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'logging.exception(<message>)'</span></code> to log the exception.</strong></li>
1212
+
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'logging.exception(<message>)'</span></code> to log the passed message, followed by the full error message of the caught exception.</strong></li>
0 commit comments