Skip to content

Commit

Permalink
handle params serialized in 2.2.0, when param attrs were not run thro…
Browse files Browse the repository at this point in the history
…ugh serializer
  • Loading branch information
dstandish committed Oct 29, 2021
1 parent f98768f commit 0fc6c0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion airflow/serialization/serialized_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,10 @@ def _serialize_param(cls, param: Param):
@classmethod
def _deserialize_param(cls, param_dict: Dict):
param_class = import_string(param_dict.pop(Param.CLASS_IDENTIFIER))
param_kwargs = cls._deserialize(param_dict)
try:
param_kwargs = cls._deserialize(param_dict)
except KeyError:
param_kwargs = param_dict
return param_class(**param_kwargs)

@classmethod
Expand Down

0 comments on commit 0fc6c0e

Please sign in to comment.