diff options
| author | Magnus Hagander | 2024-11-05 13:09:15 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2024-11-05 13:09:15 +0000 |
| commit | 2453bc24bfce937cfbde65451045ce14adc3cfc3 (patch) | |
| tree | 79683ac75b137c5c3c8a530a15e58c5decfc7f8e /postgresqleu | |
| parent | 39cbdeb03fdbc6acdae35deae24b5c738c28ba95 (diff) | |
Don't crash on contracts with no sender specific message
Commit 470fbba78f7ad65c63eab5fa956032592d5a467a didn't take this case
into account, assuming it could only be empty and not None, but it's an
optional parameter tot he function and the "Send test contract"
functionality explicitly does that.
Spotted by Steve Singer
Diffstat (limited to 'postgresqleu')
| -rw-r--r-- | postgresqleu/digisign/implementations/signwell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/digisign/implementations/signwell.py b/postgresqleu/digisign/implementations/signwell.py index d6cf850a..10f7df5c 100644 --- a/postgresqleu/digisign/implementations/signwell.py +++ b/postgresqleu/digisign/implementations/signwell.py @@ -113,7 +113,7 @@ class Signwell(BaseProvider): "id": "2", "name": sender_name, "email": sender_email, - "message": message_to_sender.replace("\n", "<br/>") or message.replace("\n", "<br/>"), + "message": message_to_sender.replace("\n", "<br/>") if message_to_sender else message.replace("\n", "<br/>"), }, ], "apply_signing_order": True, |
