[gedit] Do not eat the exception, if that fails something is wrong.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Do not eat the exception, if that fails something is wrong.
- Date: Wed, 8 Dec 2010 14:30:59 +0000 (UTC)
commit f9a4d3eb3aed819934d1ebd50e5031a287ed4158
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Dec 8 15:32:04 2010 +0100
Do not eat the exception, if that fails something is wrong.
plugins/pythonconsole/pythonconsole/config.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/plugins/pythonconsole/pythonconsole/config.py b/plugins/pythonconsole/pythonconsole/config.py
index ad5cdc6..8257a4d 100644
--- a/plugins/pythonconsole/pythonconsole/config.py
+++ b/plugins/pythonconsole/pythonconsole/config.py
@@ -43,10 +43,7 @@ class PythonConsoleConfigWidget(object):
self._ui = Gtk.Builder()
def configure_widget(self):
- try:
- self._ui.add_objects_from_file(self._ui_path, ["table"])
- except:
- return None
+ self._ui.add_objects_from_file(self._ui_path, ["table"])
self.set_colorbutton_color(self._ui.get_object('colorbutton-command'),
self._settings.get_string(self.CONSOLE_KEY_COMMAND_COLOR))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]