diff --git a/pyelibdownloader.py b/pyelibdownloader.py index 67b700e..2eebad0 100755 --- a/pyelibdownloader.py +++ b/pyelibdownloader.py @@ -39,6 +39,9 @@ lastindex = int(lastindex) while index <= lastindex: filename = str(index) + "." + extension url = prefix + str(index) + postfix - wget.download(url,out=filename) + try: + wget.download(url,out=filename) + except: + print ("...skipped...") index = index + 1 print ("Donwload finished.")