Skip to content

Commit 7cd70ac

Browse files
committed
switch to base error
1 parent fe9a557 commit 7cd70ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wamplius/cog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ async def perform_call(self, ctx: commands.Context, args: Iterable[str]) \
358358

359359
try:
360360
result = await client.call(*args, kwargs=kwargs)
361-
except aiowamp.Error as e:
361+
except aiowamp.BaseError as e:
362362
raise commands.CommandError(str(e)) from None
363363

364364
return result, args
@@ -394,7 +394,7 @@ async def perform_publish(self, ctx: commands.Context, args: Iterable[str]) -> N
394394

395395
try:
396396
await client.publish(*args, kwargs=kwargs, acknowledge=True)
397-
except aiowamp.Error as e:
397+
except aiowamp.BaseError as e:
398398
raise commands.CommandError(str(e)) from None
399399

400400
@commands.command("publish", usage="<topic> [arg]...")

0 commit comments

Comments
 (0)