summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2024-12-04 18:25:47 +0000
committerMagnus Hagander2024-12-04 18:25:47 +0000
commita59cddc65c8f6c509f108e6b6cd189d2df46b48a (patch)
tree11678ac08956185da3266ce9450c90fa8237a0cb
parent84cc71e8bc46e79713a2024054a2a53116947864 (diff)
Don't crash when contract has signwell enabled but no fields
-rw-r--r--postgresqleu/digisign/implementations/signwell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/digisign/implementations/signwell.py b/postgresqleu/digisign/implementations/signwell.py
index 10f7df5c..30c92d42 100644
--- a/postgresqleu/digisign/implementations/signwell.py
+++ b/postgresqleu/digisign/implementations/signwell.py
@@ -121,7 +121,7 @@ class Signwell(BaseProvider):
"allow_decline": True,
"allow_reassign": True,
"metadata": metadata,
- "fields": [fielddata['signwellfields']],
+ "fields": [fielddata.get('signwellfields', [])],
"draft": False,
"api_application_id": self.provider.config.get('applicationid'),
"expires_in": expires_in,