PC使用登録時にユーザーが登録されていなかったときの返り値を修正

This commit is contained in:
suti7yk5032 2024-08-23 00:58:38 +09:00
parent edd01a0d4d
commit 69dbdd0bc3

View file

@ -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__))