From 4facc36e3f5dfa8a5088313ba8031db7eee9ba0c Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Mon, 2 Mar 2020 21:38:10 +1300 Subject: [PATCH] fix return for incorrect command. --- core/forks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/forks.py b/core/forks.py index 19efad0e..25cb6d5d 100644 --- a/core/forks.py +++ b/core/forks.py @@ -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: