diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-28 14:25:36 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-28 14:25:36 (GMT) |
commit | 8915657a0835bfad1daae9c09cac98e6725ae568 (patch) | |
tree | adc8ae9068b148b4ff48fbde4de264af95c5028a /sugar | |
parent | d2aaebac38b6e142ed28c640623e8807c44332e7 (diff) |
Take out one try..except block.
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/datastore/dbus_helpers.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sugar/datastore/dbus_helpers.py b/sugar/datastore/dbus_helpers.py index fa05491..8086274 100644 --- a/sugar/datastore/dbus_helpers.py +++ b/sugar/datastore/dbus_helpers.py @@ -27,12 +27,8 @@ DS_DBUS_INTERFACE = "org.laptop.sugar.DataStore" DS_DBUS_PATH = "/org/laptop/sugar/DataStore" _bus = dbus.SessionBus() -try: - _data_store = dbus.Interface(_bus.get_object(DS_DBUS_SERVICE, DS_DBUS_PATH), - DS_DBUS_INTERFACE) -except Exception, e: - _data_store = None - logging.error(e) +_data_store = dbus.Interface(_bus.get_object(DS_DBUS_SERVICE, DS_DBUS_PATH), + DS_DBUS_INTERFACE) def create(properties, filename): object_id = _data_store.create(dbus.Dictionary(properties), filename) |