From 00d0a268a9088807d1c4a3b0970f4dc16b3dc889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henryk=20Pl=C3=B6tz?= Date: Sun, 8 Jul 2018 21:51:06 +0200 Subject: [PATCH] Fix for Python 3.5 --- byro_shackspace/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byro_shackspace/utils.py b/byro_shackspace/utils.py index 7c7f3c4..d517323 100644 --- a/byro_shackspace/utils.py +++ b/byro_shackspace/utils.py @@ -64,7 +64,7 @@ def match_transaction(sender, signal, **kwargs): } virtual_transaction = VirtualTransaction.objects.filter(**data).first() if virtual_transaction and virtual_transaction.real_transaction != transaction: - raise Exception(f'RealTransaction {transaction.id} cannot be matched! There is already a VirtualTransaction ({virtual_transaction.id}) that is too similar. It is matched to RealTransaction {virtual_transaction.real_transaction.id}.') + raise Exception('RealTransaction {transaction.id} cannot be matched! There is already a VirtualTransaction ({virtual_transaction.id}) that is too similar. It is matched to RealTransaction {virtual_transaction.real_transaction.id}.'.format(transaction=transaction, virtual_transaction=virtual_transaction)) if not virtual_transaction: data['real_transaction'] = transaction virtual_transaction = VirtualTransaction.objects.create(**data)