chiark / gitweb /
python-systemd: avoid hitting assert in __exit__
[elogind.git] / src / python-systemd / _reader.c
index d17aa83ec92e8d11ea508df6b2768d774fdffa2f..3a561269a781c30e36c25d49e03d10a46757d948 100644 (file)
@@ -313,7 +313,7 @@ PyDoc_STRVAR(Reader___exit____doc__,
              "Part of the context manager protocol.\n"
              "Closes the journal.\n");
 static PyObject* Reader___exit__(Reader *self, PyObject *args) {
-        return Reader_close(self, args);
+        return Reader_close(self, NULL);
 }
 
 PyDoc_STRVAR(Reader_next__doc__,