diff options
Diffstat (limited to 'lib/plugins/Python.cpp')
-rw-r--r-- | lib/plugins/Python.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/plugins/Python.cpp b/lib/plugins/Python.cpp index 5f2f6e17..b4d6cefc 100644 --- a/lib/plugins/Python.cpp +++ b/lib/plugins/Python.cpp @@ -27,9 +27,15 @@ using namespace std; string CAnalyzerPython::GetLocalUUID(const char *pDebugDumpDir) { CDebugDump dd; - dd.Open(pDebugDumpDir); + if (!dd.Open(pDebugDumpDir)) + { + VERB1 log(_("Unable to open debug dump '%s'"), pDebugDumpDir); + return string(""); + } + string bt; dd.LoadText(FILENAME_BACKTRACE, bt); + dd.Close(); const char *bt_str = bt.c_str(); const char *bt_end = strchrnul(bt_str, '\n'); |