diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py
index 334c866..c1ce64c 100644
--- a/sugar/datastore/datastore.py
+++ b/sugar/datastore/datastore.py
@@ -156,9 +156,7 @@ class DSObject(object):
     def resume(self, bundle_id=None):
         from sugar.activity import activityfactory

-        if self.is_activity_bundle():
-            if bundle_id is not None:
-                raise ValueError('Object is a bundle, cannot be resumed as
an activity.')
+        if self.is_activity_bundle() and not bundle_id:

             logging.debug('Creating activity bundle')
             bundle = ActivityBundle(self.file_path)
diff --git a/sugar/datastore/datastore.py b/sugar/datastore/datastore.py
index 334c866..c1ce64c 100644
--- a/sugar/datastore/datastore.py
+++ b/sugar/datastore/datastore.py
@@ -156,9 +156,7 @@ class DSObject(object):
     def resume(self, bundle_id=None):
         from sugar.activity import activityfactory
 
-        if self.is_activity_bundle():
-            if bundle_id is not None:
-                raise ValueError('Object is a bundle, cannot be resumed as an activity.')
+        if self.is_activity_bundle() and not bundle_id:
 
             logging.debug('Creating activity bundle')
             bundle = ActivityBundle(self.file_path)
_______________________________________________
Sugar mailing list
Sugar@lists.laptop.org
http://lists.laptop.org/listinfo/sugar

Reply via email to