#2247 add HTTP code as debug info

This commit is contained in:
rootzoll 2021-04-29 22:49:30 +02:00
parent 55fc805081
commit d5f8a6ad5f

View File

@ -748,7 +748,7 @@ def subscription_detail():
except Exception as e:
sub['https_response'] = 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))