mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-17 05:54:21 +01:00
py3 syntax for exception
This commit is contained in:
@@ -73,7 +73,7 @@ class command_tftp(HoneyPotCommand):
|
||||
else:
|
||||
self.fs.mkfile(self.file_to_get, 0, 0, 0, 33188)
|
||||
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:
|
||||
tclient.context.fileobj.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user