json.loads() expects a string

This commit is contained in:
tcely 2024-12-21 06:50:24 -05:00 committed by GitHub
parent 16e86ba79a
commit 54f2663f82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ def _subscriber_only(msg='', response=None):
else:
# ignore msg entirely
try:
data = json.loads(response)
data = json.loads(str(response))
except (TypeError, ValueError, AttributeError):
return False