utkarsharma2 commented on code in PR #34627:
URL: https://github.com/apache/airflow/pull/34627#discussion_r1337555960


##########
airflow/providers/microsoft/azure/hooks/container_instance.py:
##########
@@ -177,6 +177,8 @@ def get_logs(self, resource_group: str, name: str, tail: 
int = 1000) -> list:
         :return: A list of log messages
         """
         logs = self.connection.containers.list_logs(resource_group, name, 
name, tail=tail)
+        if logs.content is None:

Review Comment:
   @krisfur Wouldn't this still raise an `AttributeError`? Maybe we can do 
something like
   ```suggestion
           if not getattr(logs, "content", None):
   ```



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to