fixed syntax error handling for nether tunnels in addbase

doc_update
Joey Hines 2018-05-26 09:53:36 -05:00
parent 7b1df1922b
commit bb665be4a3
1 changed files with 7 additions and 3 deletions

View File

@ -151,7 +151,11 @@ async def addbase(ctx, name: str, x_pos: int, y_pos: int, z_pos: int, * args):
''' '''
owner = Player(str(ctx.message.author.nick)) owner = Player(str(ctx.message.author.nick))
try:
base = Location(name, x_pos, y_pos, z_pos, owner.in_game_name, args) base = Location(name, x_pos, y_pos, z_pos, owner.in_game_name, args)
except LocationInitError:
raise commands.UserInputError
session.add(owner) session.add(owner)
session.add(base) session.add(base)