PC使用登録時にユーザーが登録されていなかったときの返り値を修正
This commit is contained in:
parent
edd01a0d4d
commit
69dbdd0bc3
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ class Bot(discord.Client):
|
|||
else:
|
||||
return {"result": 1, "about": "pc_already_in_use_by_you", "pc_usage_history": {"pc_number": pc_check_self["pc_usage_history"]["pc_number"], "keyboard_number": pc_check_self["pc_usage_history"]["keyboard_number"], "mouse_number": pc_check_self["pc_usage_history"]["mouse_number"], "start_time": pc_check_self["pc_usage_history"]["start_time"]}, "use_detail": pc_check_self["pc_usage_history"]["use_detail"]}
|
||||
else:
|
||||
return {"result": "user_data_not_found"}
|
||||
return {"result": 1, "about": "user_data_not_found"}
|
||||
except Exception as error:
|
||||
print("登録処理中にエラーが発生しました。\nエラー内容")
|
||||
print(str(error.__class__.__name__))
|
||||
|
|
Loading…
Reference in a new issue