1
1
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:
David Decotigny 2016-09-15 16:42:03 -07:00
parent d4ad0a479d
commit 2e88c19568

View File

@ -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( \