1
0
Fork 0
mirror of synced 2024-06-02 18:54:33 +12:00

Correct exception checking

This commit is contained in:
Phxntxm 2017-05-19 13:55:55 -05:00
parent aebaa9b282
commit 4178298065

View file

@ -28,8 +28,8 @@ class Roles:
await ctx.send("You do not have any roles setup on this server, other than the default role!") await ctx.send("You do not have any roles setup on this server, other than the default role!")
return return
pages = utils.Pages(self.bot, message=ctx.message, entries=entries)
try: try:
pages = utils.Pages(self.bot, message=ctx.message, entries=entries)
await pages.paginate() await pages.paginate()
except utils.CannotPaginate as e: except utils.CannotPaginate as e:
await ctx.send(str(e)) await ctx.send(str(e))