1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Await the coroutine

This commit is contained in:
phxntxm 2017-06-28 05:28:41 -05:00
parent 21d0dc275f
commit 773e69e481

View file

@ -25,14 +25,14 @@ class Administration:
for _from in restrictions.get('from', []):
source = _from.get('source')
# Resolve our destination based on the ID
dest = utils.convert(ctx, _from.get('destination'))
dest = await utils.convert(ctx, _from.get('destination'))
# Don't add it if it doesn't exist
if dest:
entries.append("{} from {}".format(source, dest))
for _to in restrictions.get('to', []):
source = _to.get('source')
# Resolve our destination based on the ID
dest = utils.convert(ctx, _to.get('destination'))
dest = await utils.convert(ctx, _to.get('destination'))
# Don't add it if it doesn't exist
if dest:
entries.append("{} to {}".format(source, dest))