When guarding an import, only catch ImportError.
This commit is contained in:
parent
31e18291c5
commit
e8187615e2
|
@ -533,7 +533,7 @@ if __name__ == '__main__':
|
|||
import cmd
|
||||
try:
|
||||
import readline
|
||||
except:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
class ProfileBrowser(cmd.Cmd):
|
||||
|
|
Loading…
Reference in New Issue