mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-07 00:04:20 +01:00
py3 syntax for exception
This commit is contained in:
@@ -73,7 +73,7 @@ class command_tftp(HoneyPotCommand):
|
|||||||
else:
|
else:
|
||||||
self.fs.mkfile(self.file_to_get, 0, 0, 0, 33188)
|
self.fs.mkfile(self.file_to_get, 0, 0, 0, 33188)
|
||||||
self.fs.update_realfile(self.fs.getfile(self.file_to_get), self.safeoutfile)
|
self.fs.update_realfile(self.fs.getfile(self.file_to_get), self.safeoutfile)
|
||||||
except tftpy.TftpException, err:
|
except tftpy.TftpException as err:
|
||||||
if tclient and tclient.context and not tclient.context.fileobj.closed:
|
if tclient and tclient.context and not tclient.context.fileobj.closed:
|
||||||
tclient.context.fileobj.close()
|
tclient.context.fileobj.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user