summaryrefslogtreecommitdiff
path: root/src/python-systemd/login.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-15 12:51:20 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-15 12:59:36 -0400
commit31f49d022aee9bbb356e52e5483f182d7ffa8d2f (patch)
tree0e6e929435a744fff3269cad25be59660a62041c /src/python-systemd/login.c
parentc2748ce28c7111037f312c5446335f5538e673e8 (diff)
systemd-python: check for oom, give nicer error messages
Diffstat (limited to 'src/python-systemd/login.c')
-rw-r--r--src/python-systemd/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python-systemd/login.c b/src/python-systemd/login.c
index 1e86193f6b..dd2edbca00 100644
--- a/src/python-systemd/login.c
+++ b/src/python-systemd/login.c
@@ -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;