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
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1311,6 +1311,7 @@
1311
1311
<ul>
1312
1312
<li><strong>Also catches subclasses of the exception.</strong></li>
1313
1313
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'traceback.print_exc()'</span></code> to print the error message to stderr.</strong></li>
1314
+
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'print(<name>, file=sys.stderr)'</span></code> to print just the cause of the exception.</strong></li>
0 commit comments