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:
[email protected]


With regards,
Apache Git Services

Reply via email to