diff --git a/modules/biplan/pages.py b/modules/biplan/pages.py index 760e48c3..d9009414 100644 --- a/modules/biplan/pages.py +++ b/modules/biplan/pages.py @@ -69,7 +69,9 @@ class StartTime(Filter): a_time = content.split(' - ')[0] regexp = re.compile(ur'(?P\d+)h?(?P\d+)') m = regexp.search(a_time) - return time(int(m.groupdict()['hh'] or 0), int(m.groupdict()['mm'] or 0)) + if m: + return time(int(m.groupdict()['hh'] or 0), int(m.groupdict()['mm'] or 0)) + return time(0, 0) class EndTime(Filter):