Add some more info to an error message.
This commit is contained in:
parent
2907b10dbb
commit
99999bdb7e
@ -167,7 +167,8 @@ class DSObject(object):
|
|||||||
activityfactory.create(bundle.get_bundle_id())
|
activityfactory.create(bundle.get_bundle_id())
|
||||||
else:
|
else:
|
||||||
if not self.get_activities() and bundle_id is None:
|
if not self.get_activities() and bundle_id is None:
|
||||||
logging.warning('No activity can open this object.')
|
logging.warning('No activity can open this object, %s.' %
|
||||||
|
self.metadata.get('mime_type', None))
|
||||||
return
|
return
|
||||||
if bundle_id is None:
|
if bundle_id is None:
|
||||||
bundle_id = self.get_activities()[0].bundle_id
|
bundle_id = self.get_activities()[0].bundle_id
|
||||||
|
Loading…
Reference in New Issue
Block a user