Skip to content

Commit 53feda3

Browse files
committed
added error on failed load
1 parent 7b2ce03 commit 53feda3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PythonQtImporter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ PythonQtImporter_load_module(PyObject *obj, PyObject *args)
359359
PythonQtObjectPtr file = list.at(1);
360360
file.call("close");
361361
}
362+
} else {
363+
PyErr_Format(PythonQtImportError, "can't find module '%s'",
364+
qPrintable(info.moduleName));
362365
}
363366
}
364367
return mod;

0 commit comments

Comments
 (0)