Permalink
Browse files

- Re-enabled erroring on HMAC validation failure

  • Loading branch information...
1 parent 39ff1f1 commit dfd89b0f040ba30b3091be60ab62d16c1e466915 @gpmidi committed Jul 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/pypwsafe/__init__.py
View
2 src/pypwsafe/__init__.py
@@ -293,7 +293,7 @@ def load(self):
if self.current_hmac(cached = True) != self.hmac:
log.error('Invalid HMAC Calculated: %s File: %s' % (repr(self.current_hmac()), repr(self.hmac)))
- #raise InvalidHMACError, "Calculated: %s File: %s"%(repr(self.current_hmac()),repr(self.hmac))
+ raise InvalidHMACError, "Calculated: %s File: %s" % (repr(self.current_hmac()), repr(self.hmac))
def __str__(self):
ret = ''

0 comments on commit dfd89b0

Please sign in to comment.