mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +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 *dict = NULL;
|
||||
if (format == NULL || !Bytes_Check(format) || args == NULL) {
|
||||
PyErr_BadInternalCall();
|
||||
PyErr_SetString(PyExc_SystemError, "bad argument to internal function");
|
||||
return NULL;
|
||||
}
|
||||
fmt = Bytes_AS_STRING(format);
|
||||
|
|
Loading…
Reference in New Issue
Block a user