1
0
Fork 0
mirror of synced 2024-06-25 01:20:30 +12:00

fix parser bailing out with IndexError

This commit is contained in:
Nick Sweeting 2017-10-30 03:03:31 -05:00
parent 965130815d
commit 734c99cfdb
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ def parse_links(path):
links += list(parser_func(file))
if links:
break
except (ValueError, TypeError):
except (ValueError, TypeError, IndexError):
# parser not supported on this file
pass

View file

@ -387,7 +387,7 @@ def cleanup_archive(path, links):
if unmatched:
print('[!] Warning! {} unrecognized folders in html/archive/'.format(len(unmatched)))
print('\n '.join(unmatched))
print(' '+ '\n '.join(unmatched))
def html_appended_url(link):