KoviAnusha commented on code in PR #58062:
URL: https://github.com/apache/airflow/pull/58062#discussion_r2530518395


##########
airflow-core/src/airflow/models/connection.py:
##########
@@ -348,7 +348,14 @@ def get_password(self) -> str | None:
                     f"Can't decrypt encrypted password for login={self.login}  
"
                     f"FERNET_KEY configuration is missing"
                 )
-            return fernet.decrypt(bytes(self._password, "utf-8")).decode()
+            try:
+                return fernet.decrypt(bytes(self._password, "utf-8")).decode()
+            except Exception as e:
+                from cryptography.fernet import InvalidToken
+
+                if isinstance(e, InvalidToken):
+                    return self._password
+                raise

Review Comment:
   Addressed this



##########
airflow-core/src/airflow/models/serialized_dag.py:
##########
@@ -514,7 +514,7 @@ def get_latest_serialized_dags(
             )
             .where(cls.dag_id.in_(dag_ids))
         ).all()
-        return latest_serdags or []
+        return list(latest_serdags)

Review Comment:
   Addressed this



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