1
0
Fork 0
mirror of synced 2024-06-02 18:54:33 +12:00

Set _perm to None as it couldn't be referenced before

This commit is contained in:
phxntxm 2016-07-17 15:58:13 -05:00
parent 11aae5096d
commit 6e34c46df0

View file

@ -11,6 +11,7 @@ def customPermsOrRole(perm):
if ctx.message.channel.is_private:
return False
custom_permissions = config.getContent('custom_permissions')
_perm = None
try:
_perm = custom_permissions[ctx.message.server.id][str(ctx.command)]
except KeyError: