From: Michael Tremer Date: Fri, 27 Jun 2025 13:39:45 +0000 (+0000) Subject: python: Cleanup the switch statement X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1120513a30de43308d9ed848f7ef3c6ede6d767;p=people%2Fms%2Flibloc.git python: Cleanup the switch statement No functional changes. Signed-off-by: Michael Tremer --- diff --git a/src/python/database.c b/src/python/database.c index c0d4264..203bb39 100644 --- a/src/python/database.c +++ b/src/python/database.c @@ -213,10 +213,11 @@ static PyObject* Database_lookup(DatabaseObject* self, PyObject* args) { switch (errno) { case EINVAL: PyErr_Format(PyExc_ValueError, "Invalid IP address: %s", address); - return NULL; + break; default: PyErr_SetFromErrno(PyExc_OSError); + break; } return NULL;