mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-16 19:44:08 +02:00
fix link parsing
This commit is contained in:
@@ -246,7 +246,7 @@ def parse_json_link_index(link_dir: str) -> Optional[Link]:
|
||||
if os.path.exists(existing_index):
|
||||
with open(existing_index, 'r', encoding='utf-8') as f:
|
||||
link_json = json.load(f)
|
||||
return Link(**link_json)
|
||||
return Link.from_json(link_json)
|
||||
return None
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user