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")