Skip to content

Commit

Permalink
Merge pull request #1216 from abridgett/abridgett/1215_slackclient_re…
Browse files Browse the repository at this point in the history
…turns_decoded_dict

[#1215] slackclient v1.0.0 returns a decoded dict
  • Loading branch information
abridgett authored and bolkedebruin committed Apr 2, 2016
1 parent 3101825 commit 526e564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/operators/slack_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def execute(self, **kwargs):
if not self.api_params:
self.construct_api_call_params()
sc = SlackClient(self.token)
rc = json.loads(sc.api_call(self.method, **self.api_params).decode('utf-8'))
rc = sc.api_call(self.method, **self.api_params)
if not rc['ok']:
logging.error("Slack API call failed ({})".format(rc['error']))
raise AirflowException("Slack API call failed: ({})".format(rc['error']))
Expand Down

0 comments on commit 526e564

Please sign in to comment.