From b5d6c6b4cb0fc91db940ad718839e6718a5fbf52 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 14 Oct 2015 18:53:25 +0200 Subject: [PATCH] lingo: notify remote invoices payment only if available in transaction (#8644) --- combo/apps/lingo/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/combo/apps/lingo/views.py b/combo/apps/lingo/views.py index 009d7f8d..5e85166a 100644 --- a/combo/apps/lingo/views.py +++ b/combo/apps/lingo/views.py @@ -184,9 +184,9 @@ class CallbackView(View): except: # ignore errors, it will be retried later on if it fails pass - - for item in transaction.remote_items.split(','): - regie.pay_item(request, item) + if transaction.remote_items: + for item in transaction.remote_items.split(','): + regie.pay_item(request, item) return HttpResponse()