Browse Source

Added error messages

Foppe Hemminga 6 năm trước cách đây
mục cha
commit
4313393ed5
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      _bs.py

+ 4 - 0
_bs.py

@@ -213,5 +213,9 @@ def get_racenet_json(html):
         if match:
             # print('match')
             json = match.group(1)
+        else:
+            print('Failing in {}'.format("'match'"))
+    else:
+        print('Failing in {}'.format("'script'"))
     # pprint(json)
     return json