1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 06:37:29 +00:00

Formatting tweak, removed try/except/finally block for logging purposes

This commit is contained in:
Myned 2017-10-27 21:08:23 -04:00
parent 1c212ee20d
commit e51e2c124c

View file

@ -525,12 +525,8 @@ class MsG:
if len(pool_request) > 1: if len(pool_request) > 1:
for pool in pool_request: for pool in pool_request:
pools.append(pool['name']) pools.append(pool['name'])
match = await ctx.send('**Multiple pools found.** Type in the correct match.\n```\n{}```\nor `cancel` to cancel.'.format('\n'.join(['{} {}'.format(c, elem) for c, elem in enumerate(pools, 1)]))) match = await ctx.send('**Multiple pools found for `{}`.** Type the number of the correct match.\n```\n{}```\n`0` or `cancel`'.format(' '.join(query), '\n'.join(['{} {}'.format(c, elem) for c, elem in enumerate(pools, 1)])))
try: selection = await self.bot.wait_for('message', check=on_message, timeout=60)
selection = await self.bot.wait_for('message', check=on_message, timeout=5 * 60)
except exc.Abort:
raise exc.Abort
finally:
await match.delete() await match.delete()
tempool = [pool for pool in pool_request if pool['name'] tempool = [pool for pool in pool_request if pool['name']
== pools[int(selection.content) - 1]][0] == pools[int(selection.content) - 1]][0]