mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-01-03 20:49:02 +01:00
hostwatch: add missing errno import
If the ~/.sshuttle.hosts file does not exist, it triggers the following error: Traceback (most recent call last): File "./sshuttle", line 80, in <module> sys.exit(hostwatch.hw_main(extra)) File "/home/def/p/sshuttle/hostwatch.py", line 246, in hw_main read_host_cache() File "/home/def/p/sshuttle/hostwatch.py", line 41, in read_host_cache if e.errno == errno.ENOENT: NameError: global name 'errno' is not defined (This only happened if you run 'sshuttle --hostwatch' from the command line directly, without passing it through assembler.py.)
This commit is contained in:
parent
dcba684766
commit
b35cfbd022
@ -1,4 +1,4 @@
|
||||
import subprocess, time, socket, re, select
|
||||
import subprocess, time, socket, re, select, errno
|
||||
if not globals().get('skip_imports'):
|
||||
import helpers
|
||||
from helpers import *
|
||||
|
Loading…
Reference in New Issue
Block a user