Index: ahttp.py ================================================================== --- ahttp.py +++ ahttp.py @@ -98,12 +98,19 @@ r = session.get(url, params=params, headers=headers, verify=verify, timeout=timeout) if not quieter: log.HTTP(">>>", r.request.headers ); log.HTTP("<<<", r.headers ); - + + # err? + if r.status_code != 200: + log.ERR("HTTP Status", r.status_code, r.reason) + log.INFO(r.content) + progress_feedback("No data received ({} - {}) from channel".format(r.status_code, r.reason)) + return "" # result + log.INFO("Status", r.status_code ) log.INFO("Content-Length", len(r.content) ) statusmsg and progress_feedback(statusmsg) if not content: return r elif binary: