Explorar o código

Fix some variables in error messages

jherve hai 1 ano
pai
achega
6b41246a0b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/de_quoi_parle_le_monde/main.py

+ 2 - 2
src/de_quoi_parle_le_monde/main.py

@@ -48,7 +48,7 @@ class ArchiveDownloader:
         try:
         try:
             return await collection.MainPageClass.from_snapshot(snapshot)
             return await collection.MainPageClass.from_snapshot(snapshot)
         except Exception as e:
         except Exception as e:
-            print(f"Error while parsing {closest}")
+            print(f"Error while parsing {snapshot}")
             traceback.print_exception(e)
             traceback.print_exception(e)
             raise e
             raise e
 
 
@@ -73,7 +73,7 @@ class ArchiveDownloader:
                 await self.storage.add_top_article(snapshot_id, top_article_snap_id, t)
                 await self.storage.add_top_article(snapshot_id, top_article_snap_id, t)
 
 
         except Exception as e:
         except Exception as e:
-            print(f"Error while attempting to store {main_page} from {collection} @ {dt}")
+            print(f"Error while attempting to store {page} from {collection} @ {dt}")
             traceback.print_exception(e)
             traceback.print_exception(e)
             raise e
             raise e