diff --git a/python/libwmfs.c b/python/libwmfs.c index f410cbc..7ccd9ed 100644 --- a/python/libwmfs.c +++ b/python/libwmfs.c @@ -92,9 +92,9 @@ wmfs_init(PyObject *self, PyObject *args) /* Else, exit. */ if(!ret) { - fprintf(stderr, "WMFS is not running.\n"); XFree(ret); - exit(EXIT_FAILURE); + PyErr_SetString(WmfsInitError, "WMFS not running?"); + return NULL; } XFree(ret);