fixed syntax error handling for nether tunnels in addbase
parent
7b1df1922b
commit
bb665be4a3
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue