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


##########
airflow/models/xcom.py:
##########
@@ -772,6 +772,8 @@ def _get_bound_query(self) -> Generator[Query, None, None]:
             yield self._query
             return
 
+        if Session is None:
+            raise

Review Comment:
   ```suggestion
           if getattr(setting, "Session", None) is None:
               raise RuntimeError("Session must be set before!")
   ```
   
   This matches the pattern elsewhere; if this is called before `settings` is 
configured, the `Session` variable may actually not exist at all (instead of 
being `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