diff --git a/modules/ing/api_browser.py b/modules/ing/api_browser.py index 573381f298952a325ba5464f816122f6cebe2671..4902311a800ab3be73d3b9018f1b70a4137c5df0 100644 --- a/modules/ing/api_browser.py +++ b/modules/ing/api_browser.py @@ -433,7 +433,11 @@ def handle_recipient_error(self, r): # it is the only time that it appears if error['code'] == 'SENSITIVE_OPERATION.SENSITIVE_OPERATION_NOT_FOUND': raise AddRecipientTimeout() - elif error['code'] == 'EXTERNAL_ACCOUNT.EXTERNAL_ACCOUNT_ALREADY_EXISTS': + elif error['code'] in ( + 'EXTERNAL_ACCOUNT.EXTERNAL_ACCOUNT_ALREADY_EXISTS', + # not allowed to add a recipient + 'EXTERNAL_ACCOUNT.ACCOUNT_RESTRICTION', + ): raise AddRecipientBankError(message=error['message']) assert False, 'Recipient error not handled'