diff options
| -rw-r--r-- | psycopg/adapter_binary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/adapter_binary.c b/psycopg/adapter_binary.c index ccfaf24..d54d17a 100644 --- a/psycopg/adapter_binary.c +++ b/psycopg/adapter_binary.c @@ -88,9 +88,9 @@ binary_quote(binaryObject *self) PQfreemem(to); } - /* if the wrapped object is not a string or a buffer, this is an error */ + /* if the wrapped object is not bytes or a buffer, this is an error */ else { - PyErr_SetString(PyExc_TypeError, "can't escape non-string object"); + PyErr_SetString(PyExc_TypeError, "can't escape non-bytes object"); return NULL; } |
