Fixed typo...

This commit is contained in:
Alexander Weidinger
2015-11-20 18:26:16 +01:00
parent 9d2c15bd10
commit ee100558d8

View File

@@ -21,7 +21,7 @@ def download_files(session, f):
response = session.get(f[0], allow_redirects=False)
if response.status_code == 301:
download_files(session, (response.headers['Location'], f[1]))
if response.status_code == 200:
elif response.status_code == 200:
create_filepath(f[1])
with open(filename, 'wb') as fd:
for chunk in response.iter_content(1024):