From b112ac0ec1ace8c297e6a2affc511a8e517a3fa5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 25 Sep 2018 13:21:53 +0200 Subject: [PATCH] fixes 0003513: Can't open file - some exceptions are shown in the log --- src/App/PropertyPythonObject.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App/PropertyPythonObject.cpp b/src/App/PropertyPythonObject.cpp index 9eeebb2c1f..906debfd13 100644 --- a/src/App/PropertyPythonObject.cpp +++ b/src/App/PropertyPythonObject.cpp @@ -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();