From 55caacd182dd29d88de6a809885a018b0aad9363 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Wed, 6 Sep 2017 10:03:26 +0300 Subject: [PATCH] Fix copy-paste -error --- project/slacksync/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/slacksync/utils.py b/project/slacksync/utils.py index 2196c86a..cc4c455a 100644 --- a/project/slacksync/utils.py +++ b/project/slacksync/utils.py @@ -25,7 +25,7 @@ def quick_invite(email): return False slack = get_client() try: - resp = slack.users.admin.invite(member.email) + resp = slack.users.admin.invite(email) if 'ok' not in resp.body or not resp.body['ok']: self.logger.error("Could not invite {}, response: {}".format(email, response.body)) return False