From 16c844908d60edcae9af75f2d131c15cc1a2822b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Sun, 11 Oct 2020 17:30:33 +0200 Subject: [PATCH] debug --- workdirfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workdirfs.py b/workdirfs.py index e6ea31d..1d9079d 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 or yesterday == "": + if len(yesterday) == 0: self.yesterday = self.today else: self.yesterday = datetime.strptime(yesterday, "%Y-%m-%d")