Skip to content

Commit

Permalink
Removed useless call to PyErr_Clear
Browse files Browse the repository at this point in the history
The PyErr_Print call already clears the error indicator, according to
the docs.
  • Loading branch information
bjorn committed May 3, 2024
1 parent 5de036b commit a08a270
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/plugins/python/pythonplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ void PythonPlugin::reloadModules()
if (!script.module) {
PySys_WriteStderr("** Parse exception **\n");
PyErr_Print();
PyErr_Clear();
}
}
}
Expand Down

0 comments on commit a08a270

Please sign in to comment.