650192d4e225 — Oben Sonne 9 years ago
minor exception logging fix
1 files changed, 1 insertions(+), 1 deletions(-)

M src/deeno/db.py
M src/deeno/db.py +1 -1
@@ 95,7 95,7 @@ def primary_key_only_operation(method):
     def wrapper(relation, *args, **kwargs):
         if not relation.pk:
             raise AttributeError('invoked primary-key-requiring operation %r '
-                'on relation without a primary key')
+                'on relation without a primary key' % method.__name__)
         return method(relation, *args, **kwargs)
 
     return wrapper