浏览代码

Added error messages

Foppe Hemminga 6 年之前
父节点
当前提交
4313393ed5
共有 1 个文件被更改,包括 4 次插入0 次删除
  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