mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-04-25 10:43:41 +03:00
Avoid using PyErr_BadInternalCall as the static checker doesn't get it
This commit is contained in:
parent
003fc6dde1
commit
43d779966b
|
@ -111,7 +111,7 @@ Bytes_Format(PyObject *format, PyObject *args)
|
||||||
PyObject *result;
|
PyObject *result;
|
||||||
PyObject *dict = NULL;
|
PyObject *dict = NULL;
|
||||||
if (format == NULL || !Bytes_Check(format) || args == NULL) {
|
if (format == NULL || !Bytes_Check(format) || args == NULL) {
|
||||||
PyErr_BadInternalCall();
|
PyErr_SetString(PyExc_SystemError, "bad argument to internal function");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
fmt = Bytes_AS_STRING(format);
|
fmt = Bytes_AS_STRING(format);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user