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

Fix Forbidden error

This commit is contained in:
Myned 2018-05-10 18:35:49 -04:00
parent 5f3c313fe1
commit 2f97cb650f

View file

@ -390,10 +390,12 @@ class MsG:
for future in done: for future in done:
selection = future.result() selection = future.result()
await match.delete() with suppress(err.Forbidden):
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]
await selection.delete() with suppress(err.Forbidden):
await selection.delete()
elif pool_request: elif pool_request:
tempool = pool_request[0] tempool = pool_request[0]
else: else:
@ -638,10 +640,12 @@ class MsG:
for future in done: for future in done:
selection = future.result() selection = future.result()
await match.delete() with suppress(err.Forbidden):
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]
await selection.delete() with suppress(err.Forbidden):
await selection.delete()
pool = {'name': tempool['name'], 'id': tempool['id']} pool = {'name': tempool['name'], 'id': tempool['id']}
await destination.trigger_typing() await destination.trigger_typing()