diff options
author | Karel Klic <kklic@redhat.com> | 2010-03-15 12:39:07 +0100 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2010-03-15 12:39:07 +0100 |
commit | f916f9dc8938cd59fa8a119f245e6e61d1adf496 (patch) | |
tree | 1254ff2563a074144e3f7ec0ba3c43914de793ee | |
parent | b419870127ace2e5214227e154042e4ca0a1dbf0 (diff) | |
download | abrt-f916f9dc8938cd59fa8a119f245e6e61d1adf496.tar.gz abrt-f916f9dc8938cd59fa8a119f245e6e61d1adf496.tar.xz abrt-f916f9dc8938cd59fa8a119f245e6e61d1adf496.zip |
Do not throw if there is no reporter for some action.
-rw-r--r-- | src/Gui/CCReporterDialog.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py index f97c0785..fca4d1fb 100644 --- a/src/Gui/CCReporterDialog.py +++ b/src/Gui/CCReporterDialog.py @@ -343,10 +343,15 @@ class ReporterSelector(): pluginlist = getPluginInfoList(daemon) self.reporters = [] AnalyzerActionsAndReporters = self.settings["AnalyzerActionsAndReporters"] - for reporter_name in AnalyzerActionsAndReporters[crashdump.getAnalyzerName()].split(','): - reporter = pluginlist.getReporterByName(reporter_name) - if reporter: - self.reporters.append(reporter) + try: + reporters = AnalyzerActionsAndReporters[crashdump.getAnalyzerName()] + for reporter_name in reporters.split(','): + reporter = pluginlist.getReporterByName(reporter_name) + if reporter: + self.reporters.append(reporter) + except KeyError: + # Analyzer has no associated reporters. + pass builderfile = "%s/report.glade" % sys.path[0] self.builder = gtk.Builder() |