Skip to content

Commit 87f11af

Browse files
authored
Merge pull request #14 from openimis/hotfix-fix-json-ext
hotfix: added json_ext check if None
2 parents c995e74 + 211d573 commit 87f11af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

payroll/strategies/strategy_online_payment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _send_data_to_adaptor(cls, workflow: WorkflowHandler, payroll, user, **kwarg
139139
@classmethod
140140
def _save_payroll_data(cls, payroll, user, response_from_gateway):
141141
from payroll.models import PayrollStatus
142-
json_ext = payroll.json_ext
142+
json_ext = payroll.json_ext if payroll.json_ext else {}
143143
json_ext['response_from_gateway'] = response_from_gateway
144144
payroll.json_ext = json_ext
145145
payroll.status = PayrollStatus.AWAITING_FOR_RECONCILIATION

0 commit comments

Comments
 (0)