We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8979aa commit 40d1bbdCopy full SHA for 40d1bbd
lib/term/terminal.py
@@ -66,7 +66,7 @@ def __init__(self, tokens, modules):
66
self.modules = modules
67
try:
68
self.loaded_hosts = open(lib.settings.HOST_FILE).readlines()
69
- except IOError:
+ except (IOError, Exception):
70
lib.output.warning("no hosts file present")
71
self.loaded_hosts = open(lib.settings.HOST_FILE, "a+").readlines()
72
0 commit comments