1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-24 15:00:30 +00:00

FIX:(#1640) invalid variable reference when logging failed attempt to sign-on to 32p

This commit is contained in:
evilhero 2017-05-24 07:40:52 -04:00
parent bd03003bd3
commit c4b12b21cd

View file

@ -488,7 +488,7 @@ class info32p(object):
if r.status_code != 200:
logger.warn(self.module + " Got bad status code from login POST: %d\n%s\n%s", r.status_code, r.text, r.headers)
logger.debug(self.module + " Request URL: %s \n Content: %s \n History: %s \n Json: %s", r.url ,r.text, r.history, d)
logger.debug(self.module + " Request URL: %s \n Content: %s \n History: %s", r.url ,r.text, r.history)
self.error = {'status':'Bad Status code', 'message':(r.status_code, r.text, r.headers)}
return False
@ -496,7 +496,7 @@ class info32p(object):
logger.debug(self.module + ' Trying to analyze login JSON reply from 32P: %s', r.text)
d = r.json()
except:
logger.debug(self.module + " Request URL: %s \n Content: %s \n History: %s \n Json: %s", r.url ,r.text, r.history, d)
logger.debug(self.module + " Request URL: %s \n Content: %s \n History: %s", r.url ,r.text, r.history)
logger.error(self.module + " The data returned by the login page was not JSON: %s", r.text)
self.error = {'status':'JSON not returned', 'message':r.text}
return False