Update judge_client

print(sys.stderr) => print(file=sys.stderr)
This commit is contained in:
daklqw 2021-04-16 10:37:37 +08:00 committed by GitHub
parent 230738b770
commit 8b9bc9211c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ def handle_task():
uoj_download('/judger', 'judger_update.zip') uoj_download('/judger', 'judger_update.zip')
execute('unzip -o judger_update.zip && cd %s && make clean && make' % uoj_judger_path()) execute('unzip -o judger_update.zip && cd %s && make clean && make' % uoj_judger_path())
except: except:
print(sys.stderr, "error when update") print("error when update", file=sys.stderr)
if jconf['judger_name'] == 'main_judger': if jconf['judger_name'] == 'main_judger':
uoj_sync_judge_client() uoj_sync_judge_client()
need_restart = True need_restart = True
@ -149,7 +149,7 @@ def handle_task():
socket_server_thread.join() socket_server_thread.join()
print_judge_client_status() print_judge_client_status()
print(sys.stderr, "goodbye!") print("goodbye!", file=sys.stderr)
sys.exit(0) sys.exit(0)