summaryrefslogtreecommitdiffstats
path: root/Doc/library/traceback.rst
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-02 20:07:26 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-02 20:07:26 (GMT)
commit47395617bc2a6d2188039bf30e637bc203f93aba (patch)
tree0eb85bbca0f7dd25c619186c565f92fd63dfb886 /Doc/library/traceback.rst
parentc38c816ea16b37cdc07970474c2a477f216c27ce (diff)
downloadcpython-47395617bc2a6d2188039bf30e637bc203f93aba.zip
cpython-47395617bc2a6d2188039bf30e637bc203f93aba.tar.gz
cpython-47395617bc2a6d2188039bf30e637bc203f93aba.tar.bz2
Issue #16261: fix bare excepts in Doc/
Diffstat (limited to 'Doc/library/traceback.rst')
-rw-r--r--Doc/library/traceback.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst
index 32e5733..0533bea 100644
--- a/Doc/library/traceback.rst
+++ b/Doc/library/traceback.rst
@@ -146,7 +146,7 @@ module. ::
source = input(">>> ")
try:
exec(source, envdir)
- except:
+ except Exception:
print("Exception in user code:")
print("-"*60)
traceback.print_exc(file=sys.stdout)