删除错误代码

This commit is contained in:
wangsong 2021-12-02 17:09:47 +08:00
parent 62012db6b3
commit 57547b3525
1 changed files with 0 additions and 5 deletions

View File

@ -17,8 +17,6 @@ gettext.bindtextdomain('kylin-system-updater', '/usr/share/locale')
gettext.textdomain('kylin-system-updater')
_ = gettext.gettext
import time
from SystemUpdater.Core.utils import (unLockedEnableShutdown,LockedPreventShutdown)
#定义日志的格式
FORMAT = '%(asctime)-15s %(levelname)s:%(message)s'
@ -78,7 +76,4 @@ if __name__ == "__main__":
if app.configs.getWithDefault("SystemStatus", "isabnormalreboot", False) == True:
app.start_update()
LockedPreventShutdown()
time.sleep(10)
unLockedEnableShutdown()
app.run()