1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-22 10:33:44 +08:00

Fix: Invalid isoformat string: ''

#883
This commit is contained in:
18870
2022-01-16 00:57:32 +08:00
parent 1531808b6f
commit 918d06a893

View File

@@ -38,7 +38,11 @@ class Updater(Config, Installer):
@property @property
def schedule_time(self): def schedule_time(self):
self.read() self.read()
return datetime.time.fromisoformat(self.config['AutoRestartTime']) t = self.config['AutoRestartTime']
if t != '':
return datetime.time.fromisoformat(t)
else:
return None
@cached_property @cached_property
def repo(self): def repo(self):