diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-10 12:16:48 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-05-10 12:16:48 (GMT) |
commit | 30114f9545f2a95ac5935e92e377896d557abb23 (patch) | |
tree | ef8495efdbfa07839df8b1705272c97c6ec82f58 /sugar/datastore | |
parent | 46eea8fc7f5e8d6973db0f78ab8c9a09ce44e614 (diff) |
Temporary try..excepts while we stabilize the new datastore.
Diffstat (limited to 'sugar/datastore')
-rw-r--r-- | sugar/datastore/dbus_helpers.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sugar/datastore/dbus_helpers.py b/sugar/datastore/dbus_helpers.py index f8733ea..9ec73cf 100644 --- a/sugar/datastore/dbus_helpers.py +++ b/sugar/datastore/dbus_helpers.py @@ -27,8 +27,12 @@ DS_DBUS_INTERFACE = "org.laptop.sugar.DataStore" DS_DBUS_PATH = "/org/laptop/sugar/DataStore" _bus = dbus.SessionBus() -_data_store = dbus.Interface(_bus.get_object(DS_DBUS_SERVICE, DS_DBUS_PATH), - DS_DBUS_INTERFACE) +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) def create(properties, filename): logging.debug('dbus_helpers.create: %s, %s' % (properties, filename)) |