forked from HonusBot/HonusBot
.,,
This commit is contained in:
parent
eea3ee432e
commit
33dc6b3cef
10
inline.py
10
inline.py
@ -163,11 +163,11 @@ class InlineBot:
|
|||||||
|
|
||||||
resp = None
|
resp = None
|
||||||
self.logger.warning("JSON txt:",r.text)
|
self.logger.warning("JSON txt:",r.text)
|
||||||
try:
|
#try:
|
||||||
resp = json.loads(r.text, object_hook = asResponse)
|
resp = json.loads(r.text, object_hook = asResponse)
|
||||||
except:
|
#except:
|
||||||
self.logger.warning('JSON deserialization failed')
|
# self.logger.warning('JSON deserialization failed')
|
||||||
return None ## Invalid json
|
# return None ## Invalid json
|
||||||
|
|
||||||
if not resp.isAuthorized() or not resp.succeeded():
|
if not resp.isAuthorized() or not resp.succeeded():
|
||||||
self.logger.warning('Unathorized/Unsuccessfull')
|
self.logger.warning('Unathorized/Unsuccessfull')
|
||||||
|
Loading…
Reference in New Issue
Block a user