1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-24 14:27:27 +00:00

Caught limit out of bounds

This commit is contained in:
Myned 2017-10-17 20:29:30 -04:00
parent 389469bfbb
commit eaf6d0cd9f

View file

@ -267,8 +267,8 @@ class MsG:
except exc.NotFound: except exc.NotFound:
await ctx.send('**No matches found.**', delete_after=10) await ctx.send('**No matches found.**', delete_after=10)
await ctx.message.add_reaction('') await ctx.message.add_reaction('')
except ValueError: except exc.BoundsError as e:
await ctx.send('**Invalid limit.**', delete_after=10) await ctx.send('`{}` **invalid limit.** Images limited to 20'.format(e), delete_after=10)
await ctx.message.add_reaction('') await ctx.message.add_reaction('')
@commands.command(name='qualitify', aliases=['qualify', 'qrevify', 'qrisify', 'qify']) @commands.command(name='qualitify', aliases=['qualify', 'qrevify', 'qrisify', 'qify'])
@ -341,9 +341,9 @@ class MsG:
except exc.NotFound: except exc.NotFound:
await ctx.send('**No matches found.**', delete_after=10) await ctx.send('**No matches found.**', delete_after=10)
await ctx.message.add_reaction('') await ctx.message.add_reaction('')
# except ValueError: except exc.BoundsError as e:
# await ctx.send('**Invalid limit.**', delete_after=10) await ctx.send('`{}` **invalid limit.** Images limited to 20'.format(e), delete_after=10)
# await ctx.message.add_reaction('❌') await ctx.message.add_reaction('')
async def _qualitify(self): async def _qualitify(self):
while self.qualitifying: while self.qualitifying: