diff --git a/src/jarabe/journal/bundlelauncher.py b/src/jarabe/journal/bundlelauncher.py index 2d523cd4b4..eb6b5cfeb5 100644 --- a/src/jarabe/journal/bundlelauncher.py +++ b/src/jarabe/journal/bundlelauncher.py @@ -43,6 +43,10 @@ def get_bundle(bundle_id=None, object_id=None): return activities[0] else: + obj = datastore.get(object_id) + if obj.metadata['mime_type'] is None: + return None + mime_type = str(obj.metadata['mime_type']) bundle = bundleregistry.get_registry().get_bundle(bundle_id) if bundle is None: logging.warning('Activity with the bundle_id %s was not found',