sheetsync: Don't mis-parse blank as bad time

pull/156/head
Mike Lang 5 years ago
parent 99de586353
commit 59d0fa3e40

@ -128,7 +128,7 @@ class SheetSync(object):
def parse_bustime(self, value): def parse_bustime(self, value):
"""Convert from HH:MM or HH:MM:SS format to datetime""" """Convert from HH:MM or HH:MM:SS format to datetime"""
if value.strip() == '--': if value.strip() in ('--', ''):
return None return None
bustime = common.parse_bustime(value) bustime = common.parse_bustime(value)
return common.bustime_to_dt(self.bustime_start, bustime) return common.bustime_to_dt(self.bustime_start, bustime)

Loading…
Cancel
Save