mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Formatting tweak, removed try/except/finally block for logging purposes
This commit is contained in:
parent
1c212ee20d
commit
e51e2c124c
1 changed files with 2 additions and 6 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue