summaryrefslogtreecommitdiffstats
path: root/lib/plugins/Python.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/Python.cpp')
-rw-r--r--lib/plugins/Python.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/plugins/Python.cpp b/lib/plugins/Python.cpp
index 9ef830e3..5e4cc02a 100644
--- a/lib/plugins/Python.cpp
+++ b/lib/plugins/Python.cpp
@@ -26,12 +26,8 @@ using namespace std;
string CAnalyzerPython::GetLocalUUID(const char *pDebugDumpDir)
{
struct dump_dir *dd = dd_init();
- if (!dd_opendir(dd, pDebugDumpDir))
- {
- dd_close(dd);
- VERB1 log(_("Unable to open debug dump '%s'"), pDebugDumpDir);
+ if (!dd_opendir(dd, pDebugDumpDir, DD_CLOSE_ON_OPEN_ERR))
return string("");
- }
char *bt = dd_load_text(dd, FILENAME_BACKTRACE);
dd_close(dd);