diff options
Diffstat (limited to 'plugin/launcher.py')
-rw-r--r-- | plugin/launcher.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/launcher.py b/plugin/launcher.py index ea1ed76..ee93728 100644 --- a/plugin/launcher.py +++ b/plugin/launcher.py @@ -58,7 +58,7 @@ class Launcher(object): props.get('activity_id') or activity_id, props.get('object_id') or object_id, uri, - XoColor(props['icon-color']) if 'icon-color' in props \ + XoColor(props['icon-color']) if 'icon-color' in props else color, args) @@ -70,7 +70,7 @@ class Launcher(object): if activity_id and not object_id: _logger.debug('Look for jobject for %r activity_id', activity_id) model._get_datastore().find({'activity_id': activity_id}, ['uid'], - reply_handler=lambda jobjects, total: \ + reply_handler=lambda jobjects, total: found_jobject(jobjects[0] if total else {}), error_handler=not_found_jobject, byte_arrays=True) elif object_id and not activity_id: @@ -147,7 +147,7 @@ class Launcher(object): bundle = get_registry().get_bundle( event['context'], event['mountpoint']) if bundle is None: - add_alert('error', msg=_('Cannot find %s activity to launch') % \ + add_alert('error', msg=_('Cannot find %s activity to launch') % event['context']) else: self.launch(bundle, object_id=event['object_id'], uri=event['uri'], |