Skip to content

Commit 40d1bbd

Browse files
committed
fix for issue #1159
1 parent c8979aa commit 40d1bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/term/terminal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(self, tokens, modules):
6666
self.modules = modules
6767
try:
6868
self.loaded_hosts = open(lib.settings.HOST_FILE).readlines()
69-
except IOError:
69+
except (IOError, Exception):
7070
lib.output.warning("no hosts file present")
7171
self.loaded_hosts = open(lib.settings.HOST_FILE, "a+").readlines()
7272

0 commit comments

Comments
 (0)