Fixed error message with ?register when the user was already in the database

doc_update
Joey Hines 2018-09-16 17:32:14 -05:00
parent 8373bc0c31
commit e2e943f22c
1 changed files with 2 additions and 1 deletions

View File

@ -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: