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:
parent
973f615736
commit
6d8a7111cb
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user