mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-25 15:31:22 +02:00
fix parser bailing out with IndexError
This commit is contained in:
2
parse.py
2
parse.py
@@ -49,7 +49,7 @@ def parse_links(path):
|
|||||||
links += list(parser_func(file))
|
links += list(parser_func(file))
|
||||||
if links:
|
if links:
|
||||||
break
|
break
|
||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError, IndexError):
|
||||||
# parser not supported on this file
|
# parser not supported on this file
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
2
util.py
2
util.py
@@ -387,7 +387,7 @@ def cleanup_archive(path, links):
|
|||||||
|
|
||||||
if unmatched:
|
if unmatched:
|
||||||
print('[!] Warning! {} unrecognized folders in html/archive/'.format(len(unmatched)))
|
print('[!] Warning! {} unrecognized folders in html/archive/'.format(len(unmatched)))
|
||||||
print('\n '.join(unmatched))
|
print(' '+ '\n '.join(unmatched))
|
||||||
|
|
||||||
|
|
||||||
def html_appended_url(link):
|
def html_appended_url(link):
|
||||||
|
Reference in New Issue
Block a user