Lee-W commented on code in PR #43978:
URL: https://github.com/apache/airflow/pull/43978#discussion_r1847588126


##########
airflow/utils/db.py:
##########
@@ -1557,7 +1557,9 @@ def __setstate__(self, state: Any) -> None:
         self._session = get_current_task_instance_session()
 
     def __bool__(self) -> bool:
-        return check_query_exists(self._select_asc, session=self._session)
+        if check := check_query_exists(self._select_asc, 
session=self._session) is not None:

Review Comment:
   After a second, though, shouldn't we just handle it in `check_query_exists`? 
That function states it should return `bool`



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