From 0f4dbf34be17b935655e9718c2872bba780d407f Mon Sep 17 00:00:00 2001 From: Varsha Choudhary Date: Thu, 21 Dec 2023 12:27:19 +0530 Subject: [PATCH] Key error issue --- swimlane/core/resources/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swimlane/core/resources/app.py b/swimlane/core/resources/app.py index 6c7e1a4..e405305 100644 --- a/swimlane/core/resources/app.py +++ b/swimlane/core/resources/app.py @@ -54,7 +54,7 @@ def __init__(self, swimlane, raw): self._defaults[field['name']] = default if 'fieldType' in field and field['fieldType'] == "date": default_value_type = field['defaultValueType'] - if default_value_type == 'specific': + if default_value_type == 'specific' and 'defaultValue' in field.keys(): self._defaults[field['name']] = pendulum.parse(field['defaultValue']) self._keys_to_field_names = {}