From: Magnus Hagander Date: Wed, 4 Dec 2024 18:25:47 +0000 (+0100) Subject: Don't crash when contract has signwell enabled but no fields X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=a59cddc65c8f6c509f108e6b6cd189d2df46b48a;p=pgeu-system.git Don't crash when contract has signwell enabled but no fields --- 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,