Skip to content

Commit

Permalink
Don't crash when contract has signwell enabled but no fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed Dec 4, 2024
1 parent 84cc71e commit a59cddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgresqleu/digisign/implementations/signwell.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def send_contract(self, sender_name, sender_email, recipient_name, recipient_ema
"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,
Expand Down

0 comments on commit a59cddc

Please sign in to comment.