From 1332d4a0d8d758b003f1d9d3de825e7317129866 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 23 Feb 2012 14:29:39 +0000 Subject: [PATCH] Fixed never raised exception in composite parsing --- lib/extras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extras.py b/lib/extras.py index a6fcbc04..ae77a882 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -861,7 +861,7 @@ class CompositeCaster(object): rv = [] for m in self._re_tokenize.finditer(s): if m is None: - raise psycopg2.InterfaceError("can't parse type: %r", s) + raise psycopg2.InterfaceError("can't parse type: %r" % s) if m.group(1): rv.append(None) elif m.group(2):