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

@@ -3192,7 +3192,7 @@ def decodeHexValue(value):
try:
retVal = applyFunctionRecursively(value, _)
except Exception:
except:
singleTimeWarnMessage("there was a problem decoding value '%s' from expected hexadecimal form" % value)
return retVal

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