Bug fix: process next URL skip failing ones even if not in verbose

This commit is contained in:
Alexandre Dulaunoy 2015-01-11 18:05:00 +01:00
parent 7d9f1ca0b8
commit 80049f8f30

View file

@ -45,7 +45,7 @@ for url in fileinput.input(args.r):
except Exception, err:
if args.v:
print err
continue
continue
if r.status_code >= 200 and r.status_code <= 299:
with open (os.path.join(storepath,hurl), 'w') as f:
f.write(r.content)