Fixed error message with ?register when the user was already in the database
parent
8373bc0c31
commit
e2e943f22c
|
@ -52,7 +52,8 @@ class DatabaseInterface:
|
||||||
|
|
||||||
def add_player(self, session, player_name, discord_uuid=None):
|
def add_player(self, session, player_name, discord_uuid=None):
|
||||||
try:
|
try:
|
||||||
player = self.find_player(session, player_name)
|
self.find_player(session, player_name)
|
||||||
|
raise PlayerInDBError
|
||||||
except PlayerNotFound:
|
except PlayerNotFound:
|
||||||
mc_uuid = grab_UUID(player_name)
|
mc_uuid = grab_UUID(player_name)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue