mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
#2247 add HTTP code as debug info
This commit is contained in:
parent
800c55b6fd
commit
8a11b46b72
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,7 @@ def subscription_detail():
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
sub['https_response'] = 0
|
sub['https_response'] = 0
|
||||||
if sub['https_response']!=200 and len(sub['warning'])==0:
|
if sub['https_response']!=200 and len(sub['warning'])==0:
|
||||||
sub['warning'] = "Not able to get HTTPS response."
|
sub['warning'] = "Not able to get HTTPS response ({0}).".format(sub['https_response'])
|
||||||
|
|
||||||
print(json.dumps(sub, indent=2))
|
print(json.dumps(sub, indent=2))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue