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):