diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-06-03 13:41:26 +0100 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-06-03 13:59:51 +0100 |
commit | 1608e53072b035bd40de7a202e75354f0e802120 (patch) | |
tree | a530210ff9fa4f44e1e3061af05df3f55ec96c35 /doc/source/conf.py | |
parent | 0e4610e30aabaf32c037fc94c869a20f2435a8f1 (diff) | |
download | numpy-1608e53072b035bd40de7a202e75354f0e802120.tar.gz |
BUG: KeyboardInterrupt is swallowed all over the place
Bare except is very rarely the right thing
Diffstat (limited to 'doc/source/conf.py')
-rw-r--r-- | doc/source/conf.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 2bafc50eb..9ce7040ae 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -306,19 +306,19 @@ def linkcode_resolve(domain, info): for part in fullname.split('.'): try: obj = getattr(obj, part) - except: + except Exception: return None try: fn = inspect.getsourcefile(obj) - except: + except Exception: fn = None if not fn: return None try: source, lineno = inspect.getsourcelines(obj) - except: + except Exception: lineno = None if lineno: |