When guarding an import, only catch ImportError.

This commit is contained in:
Fred Drake 2001-05-11 19:21:41 +00:00
parent 31e18291c5
commit e8187615e2
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ if __name__ == '__main__':
import cmd
try:
import readline
except:
except ImportError:
pass
class ProfileBrowser(cmd.Cmd):