Skip to content

Commit

Permalink
fixes 0003513: Can't open file - some exceptions are shown in the log
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 25, 2018
1 parent b330950 commit b112ac0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App/PropertyPythonObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b112ac0

Please sign in to comment.