fixes 0003513: Can't open file - some exceptions are shown in the log

This commit is contained in:
wmayer
2018-09-25 13:21:53 +02:00
parent bbdb0ab323
commit 54128ed41c

View File

@@ -120,6 +120,8 @@ void PropertyPythonObject::fromString(const std::string& repr)
{
Base::PyGILStateLocker lock;
try {
if (repr.empty())
return;
Py::Module pickle(PyImport_ImportModule("json"),true);
if (pickle.isNull())
throw Py::Exception();