mirror of
https://github.com/eblot/pybootd.git
synced 2024-09-11 22:17:44 +03:00
pkg_resources doesnt raise IOError but its own
This commit is contained in:
parent
d4ad0a479d
commit
2e88c19568
@ -134,7 +134,7 @@ class TftpConnection(object):
|
||||
else:
|
||||
try:
|
||||
resource = pybootd_path(resource)
|
||||
except IOError:
|
||||
except Exception:
|
||||
if not self.server.genfilecre.match(resource):
|
||||
if resource.startswith('^%s' % os.sep):
|
||||
resource = os.path.join( \
|
||||
|
Loading…
Reference in New Issue
Block a user