1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 22:08:20 +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
def schedule_time(self):
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
def repo(self):