def not_forbidden(): def predicate(ctx): if not_forbidden_check(ctx): return True else: raise errors.NotPermitted return commands.check(predicate)