This commit is contained in:
Christian Rendina 2020-05-05 16:44:24 +02:00
parent eea3ee432e
commit 33dc6b3cef

View File

@ -163,11 +163,11 @@ class InlineBot:
resp = None
self.logger.warning("JSON txt:",r.text)
try:
resp = json.loads(r.text, object_hook = asResponse)
except:
self.logger.warning('JSON deserialization failed')
return None ## Invalid json
#try:
resp = json.loads(r.text, object_hook = asResponse)
#except:
# self.logger.warning('JSON deserialization failed')
# return None ## Invalid json
if not resp.isAuthorized() or not resp.succeeded():
self.logger.warning('Unathorized/Unsuccessfull')