• Frederik Deweerdt's avatar
    hostwatch: add missing errno import · b35cfbd0
    Frederik Deweerdt authored
    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.)
    b35cfbd0
hostwatch.py 6.95 KB