1
1
mirror of https://github.com/eblot/pybootd.git synced 2024-08-17 18:00:33 +03:00

Fix log messages

This commit is contained in:
Emmanuel Blot 2019-09-05 17:08:57 +02:00
parent 973f615736
commit 6d8a7111cb

View File

@ -347,12 +347,12 @@ class TftpConnection(object):
else:
try:
if self.is_url(resource):
self.log.info("Sending resource '%s'" % resource)
self.file = urlopen(resource)
self.log.info("Sending resource '%s'" % resource)
else:
resource = os.path.realpath(resource)
self.log.info("Sending file '%s'" % resource)
self.file = open(resource, 'rb')
self.log.info("Sending file '%s'" % resource)
except Exception as exc:
self.send_error(TftpError.FILE_NOT_FOUND,
'Cannot open resource')