@ -1416,7 +1416,7 @@ except (<exception>, [...]) as <name>: ...
* **Use `'traceback.print_exc()'` to print the full error message to stderr.**
* **Use `'print(<name>)'` to print just the cause of the exception (its arguments).**
* **Use `'logging.exception(<message>)'` to log the passed message, followed by the full error message of the caught exception. For details see [logging](#logging).**
* **Use `'sys.exc_info()'` to get exception type, object and traceback of caught exception.**
* **Use `'sys.exc_info()'` to get exception type, object, and traceback of caught exception.**
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'traceback.print_exc()'</span></code> to print the full error message to stderr.</strong></li>
<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>
<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. For details see <ahref="#logging">logging</a>.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'sys.exc_info()'</span></code> to get exception type, object and traceback of caught exception.</strong></li>
<li><strong>Use <codeclass="python hljs"><spanclass="hljs-string">'sys.exc_info()'</span></code> to get exception type, object, and traceback of caught exception.</strong></li>