diff options
Diffstat (limited to 'src/pl/plpython/plpython.c')
-rw-r--r-- | src/pl/plpython/plpython.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c index 2f67caba6db..c0030d05a84 100644 --- a/src/pl/plpython/plpython.c +++ b/src/pl/plpython/plpython.c @@ -4928,16 +4928,7 @@ PLyUnicode_Bytes(PyObject *unicode) rv = PyUnicode_AsEncodedString(unicode, serverenc, "strict"); if (rv == NULL) - { - /* - * Use a plain ereport instead of PLy_elog to avoid recursion, if - * the traceback formatting functions try to do unicode to bytes - * conversion again. - */ - ereport(ERROR, - (errcode(ERRCODE_INTERNAL_ERROR), - errmsg("could not convert Python Unicode object to PostgreSQL server encoding"))); - } + PLy_elog(ERROR, "could not convert Python Unicode object to PostgreSQL server encoding"); return rv; } |