mirror of
https://github.com/lkddi/dell-fans-controller-docker.git
synced 2026-04-03 18:10:51 +08:00
提示词全部改为中文
This commit is contained in:
8
start.py
8
start.py
@@ -12,13 +12,13 @@ if __name__ == '__main__':
|
||||
password = os.getenv('PASSWORD')
|
||||
|
||||
if host is None:
|
||||
raise RuntimeError('HOST environment variable not set')
|
||||
raise RuntimeError('HOST 环境变量未设置')
|
||||
|
||||
if username is None:
|
||||
raise RuntimeError('USERNAME environment variable not set')
|
||||
raise RuntimeError('USERNAME 环境变量未设置')
|
||||
|
||||
if password is None:
|
||||
raise RuntimeError('PASSWORD environment variable not set')
|
||||
raise RuntimeError('PASSWORD 环境变量未设置')
|
||||
|
||||
while True:
|
||||
try:
|
||||
@@ -27,5 +27,5 @@ if __name__ == '__main__':
|
||||
time.sleep(60)
|
||||
except Exception as err:
|
||||
logger.error(
|
||||
f'run controller failed {err}. {traceback.format_exc()}'
|
||||
f'运行控制器失败 {err}. {traceback.format_exc()}'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user