Explorar o código

Add else clause for debugging purposes

Foppe Hemminga %!s(int64=6) %!d(string=hai) anos
pai
achega
7fc609d80b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      _bs.py

+ 3 - 0
_bs.py

@@ -140,6 +140,9 @@ def get_meta_data(this_data, this_venue):
                 print_it = True
                 print('datetime.date.fromtimestamp(times[3]+12*60*60): {}'.format(
                     datetime.date.fromtimestamp(times[3]+12*60*60)))
+        elif print_it:
+            print('this_meta_data: {}'.format(this_meta_data))
+            print('No match for regex: {}'.format(close_regex))
     # The RaceDAy namedTuple is created and filled
     race_day = RaceDay(this_venue.state, this_venue.name, this_venue.date_string,
                        datetime.date.fromtimestamp(times[3]+12*60*60),