From 4ef4bc1ba11d9c185db584ed97ce520a6306b462 Mon Sep 17 00:00:00 2001 From: Michal Toman Date: Wed, 18 Aug 2010 11:18:39 +0200 Subject: get rid of exceptions in CDebugDump class --- lib/plugins/Python.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/plugins/Python.cpp') 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'); -- cgit