Handle an error gracefully. May be overridden. The default is to print a traceback and continue.
(self, request, client_address)
| 367 | pass |
| 368 | |
| 369 | def handle_error(self, request, client_address): |
| 370 | """Handle an error gracefully. May be overridden. |
| 371 | |
| 372 | The default is to print a traceback and continue. |
| 373 | |
| 374 | """ |
| 375 | print('-'*40, file=sys.stderr) |
| 376 | print('Exception occurred during processing of request from', |
| 377 | client_address, file=sys.stderr) |
| 378 | import traceback |
| 379 | traceback.print_exc() |
| 380 | print('-'*40, file=sys.stderr) |
| 381 | |
| 382 | def __enter__(self): |
| 383 | return self |
no test coverage detected