From f73132de9130aeba285ae91089a2c0baa5f5a853 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sat, 8 Sep 2007 18:41:59 +0200 Subject: [PATCH] Don't try to resume a DSObject if no activity can open it. --- sugar/datastore/datastore.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py index 0be6a2fa..d4340feb 100644 --- a/sugar/datastore/datastore.py +++ b/sugar/datastore/datastore.py @@ -138,6 +138,8 @@ class DSObject(object): activityfactory.create(bundle.get_service_name()) else: + if not self.get_activities(): + return if service_name is None: service_name = self.get_activities()[0].service_name