#2247 add HTTP code as debug info

This commit is contained in:
rootzoll 2021-04-29 22:49:30 +02:00
parent 800c55b6fd
commit 8a11b46b72

View file

@ -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))