You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/01/03 16:53:47 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #7022: [AIRFLOW-6385] BugFix: SlackAPIPostOperator fails when blocks not set

kaxil commented on a change in pull request #7022: [AIRFLOW-6385] BugFix: SlackAPIPostOperator fails when blocks not set
URL: https://github.com/apache/airflow/pull/7022#discussion_r362881159
 
 

 ##########
 File path: airflow/operators/slack_operator.py
 ##########
 @@ -128,7 +128,7 @@ def __init__(self,
         self.text = text
         self.icon_url = icon_url
         self.attachments = attachments
-        self.blocks = blocks
+        self.blocks = blocks or []
 
 Review comment:
   Adding test in a sec

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services