From 877665aeab2747837f365e826e7af774ef704aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Sun, 11 Oct 2020 17:26:53 +0200 Subject: [PATCH] debug --- workdirfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workdirfs.py b/workdirfs.py index 976480e..e6ea31d 100755 --- a/workdirfs.py +++ b/workdirfs.py @@ -97,7 +97,7 @@ class WorkdirFS(Operations): with open(self.configlast, 'r') as fh: yesterday = fh.readline().strip() print("yesterday: "+yesterday, end='\n') - if yesterday == None: + if yesterday == None or yesterday == "": self.yesterday = self.today else: self.yesterday = datetime.strptime(yesterday, "%Y-%m-%d")