From 48ef5ca0c9286d0da466406000594dd3ff862c8b Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 2 Apr 2012 10:57:47 +0000 Subject: [PATCH] Fixed exception (was caught but unneeded) git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1738 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- Greenshot/Helpers/PluginHelper.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Greenshot/Helpers/PluginHelper.cs b/Greenshot/Helpers/PluginHelper.cs index b97ea0186..02d95442a 100644 --- a/Greenshot/Helpers/PluginHelper.cs +++ b/Greenshot/Helpers/PluginHelper.cs @@ -261,10 +261,8 @@ namespace Greenshot.Helpers { // check if this plugin is already available PluginAttribute checkPluginAttribute = null; - try { + if (tmpAttributes.ContainsKey(pluginAttribute.Name)) { checkPluginAttribute = tmpAttributes[pluginAttribute.Name]; - } catch { - } if (checkPluginAttribute != null) {