kaxil commented on code in PR #28124:
URL: https://github.com/apache/airflow/pull/28124#discussion_r1039847814
##########
airflow/utils/json.py:
##########
@@ -212,7 +212,11 @@ def object_hook(self, dct: dict) -> object:
break
if not cls:
- raise ImportError(f"{classname} was not found in allow list
for import")
+ raise ImportError(
+ f"{classname} was not found in allow list for import in
XCom. "
+ "If you want to continue to use your class in XCom, add it
to "
+ "allowed_deserialization_classes config in core section of
config."
Review Comment:
```suggestion
"allowed_deserialization_classes config in core section
of airflow.cfg."
```
##########
airflow/utils/json.py:
##########
@@ -212,7 +212,11 @@ def object_hook(self, dct: dict) -> object:
break
if not cls:
- raise ImportError(f"{classname} was not found in allow list
for import")
+ raise ImportError(
+ f"{classname} was not found in allow list for import in
XCom. "
Review Comment:
```suggestion
f"{classname} was not found in allow list for imports. "
```
--
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]