fix return for incorrect command.

This commit is contained in:
Clinton Hall 2020-03-02 21:38:10 +13:00 committed by GitHub
commit 4facc36e3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,9 @@ def api_check(r, params, rem_params):
logger.debug('Response received')
raise
if isinstance(json_data, str):
return rem_params, False
try:
json_data = json_data['data']
except KeyError: