Adding some logging statements
This commit is contained in:
parent
435c49da98
commit
687548ec68
1 changed files with 3 additions and 0 deletions
|
@ -73,7 +73,10 @@ class PypoFile(Thread):
|
|||
url = media_item['download_url']
|
||||
|
||||
with open(dst, "wb") as handle:
|
||||
self.logger.info("----------")
|
||||
self.logger.info(url)
|
||||
response = requests.get(url, auth=requests.auth.HTTPBasicAuth(username, ''), stream=True, verify=False)
|
||||
self.logger.info(response)
|
||||
|
||||
if not response.ok:
|
||||
raise Exception("%s - Error occurred downloading file" % response.status_code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue