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


##########
airflow-core/src/airflow/models/connection.py:
##########
@@ -372,12 +389,12 @@ def get_extra(self) -> str:
                     f"Can't decrypt `extra` params for login={self.login}, "
                     f"FERNET_KEY configuration is missing"
                 )
-            extra_val = fernet.decrypt(bytes(self._extra, "utf-8")).decode()
+            extra_val: str | None = self._safe_decrypt(self._extra)
         else:
             extra_val = self._extra
         if extra_val:
             self._validate_extra(extra_val, self.conn_id)
-        return extra_val
+        return extra_val or None

Review Comment:
   Addressed in 
https://github.com/apache/airflow/pull/58062/files#diff-9e4d21da1af581918f084b2453d44a0bcab44d26094ff18eaaa864ede818a087R393



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