mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-06 03:46:40 +08:00
Fix unknown Error
This commit is contained in:
parent
0e3587ab3b
commit
97f97f7c50
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ class BeyondHD:
|
|||
except JSONDecodeError as e:
|
||||
if response.status_code >= 400:
|
||||
raise Failed(e)
|
||||
elif "Expecting value" in e:
|
||||
logger.debug(e)
|
||||
if response.status_code >= 400:
|
||||
logger.debug(f"Response: {response_json}")
|
||||
raise Failed(f"({response.status_code} [{response.reason}]) {response_json}")
|
||||
|
|
Loading…
Add table
Reference in a new issue