py3 syntax for exception

This commit is contained in:
Michel Oosterhof
2017-03-05 22:03:30 +00:00
parent 2e56ec5ea7
commit 2bb8523e69

View File

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