From 30114f9545f2a95ac5935e92e377896d557abb23 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 10 May 2007 12:16:48 +0000 Subject: Temporary try..excepts while we stabilize the new datastore. --- (limited to 'sugar/datastore') 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)) -- cgit v0.9.1