From 59d0fa3e402b244e9df753e67923526b7afb3f62 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Thu, 7 Nov 2019 13:39:09 -0800 Subject: [PATCH] sheetsync: Don't mis-parse blank as bad time --- sheetsync/sheetsync/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheetsync/sheetsync/main.py b/sheetsync/sheetsync/main.py index a85595c..0f1811c 100644 --- a/sheetsync/sheetsync/main.py +++ b/sheetsync/sheetsync/main.py @@ -128,7 +128,7 @@ class SheetSync(object): def parse_bustime(self, value): """Convert from HH:MM or HH:MM:SS format to datetime""" - if value.strip() == '--': + if value.strip() in ('--', ''): return None bustime = common.parse_bustime(value) return common.bustime_to_dt(self.bustime_start, bustime)