Skip to content

armgit / storm

Public Imported from GitHub
0

An LLM-powered knowledge curation system that researches a topic and generates a full-length report with citations.

Replaced Exception in IOError

evidencebp1a41ef99672d
diff --git a/FreshWiki/wikipage_extractor.py b/FreshWiki/wikipage_extractor.py
index 66f69be..9dcdd0a 100644
--- a/FreshWiki/wikipage_extractor.py
+++ b/FreshWiki/wikipage_extractor.py
@@ -202,7 +202,7 @@ def main(args):
for _, row in tqdm(df.iterrows()):
try:
process_url(row['url'], args.outputDirectory)
- except Exception as e:
+ except IOError as e:
print(e)
print(f'Error occurs when processing {row["url"]}')
else: