commit | e8187615e281c409516b64eda5f7a5a56274e5a1 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Fri May 11 19:21:41 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Fri May 11 19:21:41 2001 +0000 |
tree | b5cba95001ba8b1d6830c8f973496d51d8f66be4 | |
parent | 31e18291c59270a4c84360e7ba725b229a47c7e1 [diff] |
When guarding an import, only catch ImportError.
diff --git a/Lib/pstats.py b/Lib/pstats.py index 19478d6..b46727d 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py
@@ -533,7 +533,7 @@ import cmd try: import readline - except: + except ImportError: pass class ProfileBrowser(cmd.Cmd):