The new changes caused an exception when unpacking the tuple, fixed it

This commit is contained in:
byt3bl33d3r 2015-05-23 00:37:08 +02:00
parent 840e202e5b
commit e985d42a8a
3 changed files with 12 additions and 2 deletions

View file

@ -120,7 +120,11 @@ class ServerConnection(HTTPClient):
self.sendPostData()
def handleStatus(self, version, code, message):
version, code, message = self.plugins.hook()
try:
version, code, message = self.plugins.hook()
except ValueError:
pass
mitmf_logger.debug("[ServerConnection] Server response: {} {} {}".format(version, code, message))
self.client.setResponseCode(int(code), message)