Restyling redundant 'except Exception' form

This commit is contained in:
Miroslav Stampar
2013-01-10 15:54:28 +01:00
parent acfeeb4f51
commit 834be1eddc
4 changed files with 4 additions and 4 deletions

View File

@@ -639,7 +639,7 @@ def _setMetasploit():
_ = ConnectRegistry(None, HKEY_LOCAL_MACHINE)
_ = OpenKey(_, key)
retVal = QueryValueEx(_, value)[0]
except Exception:
except:
logger.debug("unable to identify Metasploit installation path via registry key")
return retVal