uranusjr commented on code in PR #23891:
URL: https://github.com/apache/airflow/pull/23891#discussion_r881245211


##########
airflow/providers/alibaba/cloud/hooks/oss.py:
##########
@@ -163,7 +161,7 @@ def load_string(self, key: str, content: str, bucket_name: 
Optional[str] = None)
         try:
             self.get_bucket(bucket_name).put_object(key, content)
         except Exception as e:
-            raise AirflowException(f"Errors: {e}")
+            raise AirflowException(f"Errors: {e}") from e

Review Comment:
   Maybe we should just let the underlying error bubble up instead. I can’t 
think of a merit catching this to coerce into AirflowException.



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