Skip to content

Commit

Permalink
fix: key error ssue
Browse files Browse the repository at this point in the history
  • Loading branch information
Varsha Choudhary authored and Varsha Choudhary committed Dec 21, 2023
1 parent fb152e7 commit 9115d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swimlane/core/resources/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 9115d8b

Please sign in to comment.