Procházet zdrojové kódy

Change assert into debug

Foppe Hemminga před 6 roky
rodič
revize
6c66c41583
1 změnil soubory, kde provedl 6 přidání a 3 odebrání
  1. 6 3
      _bs.py

+ 6 - 3
_bs.py

@@ -177,7 +177,10 @@ def process_scratchings(this_data, this_venue):
     late_scratchings = scrape_scratchings(div, this_venue)
     scratchings.update(late_scratchings)
 
-    assert len(scratchings) == int(scratchings_count), 'len(scratchings) {} == scratchings_count {}'.format(
-         len(scratchings), scratchings_count)
-    # pprint(scratchings)
+    # assert len(scratchings) == int(scratchings_count), 'len(scratchings) {} == scratchings_count {}'.format(
+    #     len(scratchings), scratchings_count)
+    if len(scratchings) != int(scratchings_count):
+        print('len(scratchings) {} == scratchings_count {}'.format(
+            len(scratchings), scratchings_count))
+        pprint(scratchings)
     return scratchings