From 639af8bb728378c8b61dc968c154020a6940287b Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 14 Oct 2015 18:53:25 +0200 Subject: [PATCH] notify remote invoices payment only if available in transaction (#8644) --- lingo/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lingo/views.py b/lingo/views.py index 009d7f8..5e85166 100644 --- a/lingo/views.py +++ b/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()