From 3a81706aeb4c1937194ca5968640a30f7665e16e Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 17 Sep 2019 16:46:21 +0200 Subject: [PATCH] Fix KeyError in bank import --- src/pretix/plugins/banktransfer/csvimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/banktransfer/csvimport.py b/src/pretix/plugins/banktransfer/csvimport.py index 1501ca2764..c924cc51f5 100644 --- a/src/pretix/plugins/banktransfer/csvimport.py +++ b/src/pretix/plugins/banktransfer/csvimport.py @@ -31,7 +31,7 @@ def parse(data, hint): if len(resrow['amount']) == 0 or 'amount' not in resrow or resrow['date'] == '': # This is probably a headline or something other special. continue - if resrow['reference'] or resrow['payer']: + if resrow.get('reference') or resrow.get('payer'): good_hint = True result.append(resrow) return result, good_hint