Explorar el Código

Fix some variables in error messages

jherve hace 1 año
padre
commit
6b41246a0b
Se han modificado 1 ficheros con 2 adiciones y 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:
             return await collection.MainPageClass.from_snapshot(snapshot)
         except Exception as e:
-            print(f"Error while parsing {closest}")
+            print(f"Error while parsing {snapshot}")
             traceback.print_exception(e)
             raise e
 
@@ -73,7 +73,7 @@ class ArchiveDownloader:
                 await self.storage.add_top_article(snapshot_id, top_article_snap_id, t)
 
         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)
             raise e