Skip to content

Commit

Permalink
Fix PlainAsserts tests in Database Isolation Mode (apache#41299)
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl authored Aug 7, 2024
1 parent c8bc42c commit 00991d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/utils/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def __init__(self, attribute_name: str):
self.attribute_name = attribute_name

def __getattr__(self, item):
if item == "attribute_name":
return super().__getattribute__(item)
raise RuntimeError(
f"Attribute {self.attribute_name} was removed on "
f"serialization and must be set again - found when accessing {item}."
Expand Down

0 comments on commit 00991d5

Please sign in to comment.