mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-22 07:07:46 +00:00
🐛 Fix the exception raised when player_info is None
This commit is contained in:
parent
913e566f5e
commit
3f20430b70
@ -163,7 +163,7 @@ class BindAccountPlugin(Plugin.Conversation):
|
|||||||
record_card = bind_account_plugin_data.record_card
|
record_card = bind_account_plugin_data.record_card
|
||||||
is_chosen = True
|
is_chosen = True
|
||||||
player_info = await self.players_service.get_player(user.id) # 寻找主账号
|
player_info = await self.players_service.get_player(user.id) # 寻找主账号
|
||||||
if player_info.is_chosen:
|
if player_info is not None and player_info.is_chosen:
|
||||||
is_chosen = False
|
is_chosen = False
|
||||||
player = Player(
|
player = Player(
|
||||||
user_id=user.id,
|
user_id=user.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user