From: Michael Tremer Date: Thu, 6 Mar 2025 18:37:14 +0000 (+0000) Subject: python: Fix unintended fallthrough X-Git-Tag: 0.9.18~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce92b9cf6b581916a28fac6890504c6e74b12fd5;p=location%2Flibloc.git python: Fix unintended fallthrough Signed-off-by: Michael Tremer --- diff --git a/src/python/database.c b/src/python/database.c index afce3c1..c0d4264 100644 --- a/src/python/database.c +++ b/src/python/database.c @@ -213,6 +213,7 @@ static PyObject* Database_lookup(DatabaseObject* self, PyObject* args) { switch (errno) { case EINVAL: PyErr_Format(PyExc_ValueError, "Invalid IP address: %s", address); + return NULL; default: PyErr_SetFromErrno(PyExc_OSError);