summaryrefslogtreecommitdiffstats
path: root/lib/plugins/Python.cpp
diff options
context:
space:
mode:
authorMichal Toman <mtoman@redhat.com>2010-08-18 11:18:39 +0200
committerMichal Toman <mtoman@redhat.com>2010-08-18 11:18:39 +0200
commit4ef4bc1ba11d9c185db584ed97ce520a6306b462 (patch)
tree5b37f6ca52fd5911b7e65157b4246cc99d7f3fab /lib/plugins/Python.cpp
parente0b0da307a78b038045e2cb86934d60befd74339 (diff)
downloadabrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.tar.gz
abrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.tar.xz
abrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.zip
get rid of exceptions in CDebugDump class
Diffstat (limited to 'lib/plugins/Python.cpp')
-rw-r--r--lib/plugins/Python.cpp8
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');