turbaszek commented on a change in pull request #7802: Make airflow/providers 
pylint compatible
URL: https://github.com/apache/airflow/pull/7802#discussion_r396082363
 
 

 ##########
 File path: airflow/providers/dingding/hooks/dingding.py
 ##########
 @@ -129,5 +129,5 @@ def send(self):
         # Dingding success send message will with errcode equal to 0
         if int(resp.json().get('errcode')) != 0:
             raise AirflowException('Send Dingding message failed, receive 
error '
-                                   'message %s', resp.text)
+                                   'message {}'.format(resp.text))
 
 Review comment:
   I am in favor of f-strings 

----------------------------------------------------------------
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