mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #16261: fix bare excepts in Doc/
This commit is contained in:
parent
c38c816ea1
commit
47395617bc
3 changed files with 3 additions and 5 deletions
|
|
@ -741,9 +741,7 @@ the basis for code meeting your own specific requirements::
|
|||
break
|
||||
logger = logging.getLogger(record.name)
|
||||
logger.handle(record) # No level or filter logic applied - just do it!
|
||||
except (KeyboardInterrupt, SystemExit):
|
||||
raise
|
||||
except:
|
||||
except Exception:
|
||||
import sys, traceback
|
||||
print('Whoops! Problem:', file=sys.stderr)
|
||||
traceback.print_exc(file=sys.stderr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue