소스 검색

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