chiark / gitweb /
systemd-python: check for oom, give nicer error messages
[elogind.git] / src / python-systemd / login.c
index 1e86193f6be8f3a6ca29838ee6e53acfb4627e2a..dd2edbca00598daaeb2fb2479fcab6a4e0c6138a 100644 (file)
@@ -159,7 +159,7 @@ static int Monitor_init(Monitor *self, PyObject *args, PyObject *keywds)
         int r;
 
         static const char* const kwlist[] = {"category", NULL};
-        if (!PyArg_ParseTupleAndKeywords(args, keywds, "|z", (char**) kwlist,
+        if (!PyArg_ParseTupleAndKeywords(args, keywds, "|z:__init__", (char**) kwlist,
                                          &category))
                 return -1;