From ab2b00912873d9fb945a01b4508dbd223f81e7ab Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 12 Sep 2013 17:03:08 +0800 Subject: [PATCH] Do not throw exception when plugin is already installed --- lib/commands/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/plugin.py b/lib/commands/plugin.py index c2bb4c7..5a78abc 100644 --- a/lib/commands/plugin.py +++ b/lib/commands/plugin.py @@ -160,7 +160,8 @@ class PluginCommand(Command): po = PluginObject(args.pluginname) if not args.force and PluginManager.hasPlugin(po, M): - raise Exception('The plugin is already present') + logging.error('The plugin is already present, set --force to overwrite it.') + return False branch = M.get('branch') if branch == 'master': -- 2.11.0