Skip to content

Commit

Permalink
- Re-enabled erroring on HMAC validation failure
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmidi committed Jul 23, 2011
1 parent 39ff1f1 commit dfd89b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pypwsafe/__init__.py
Expand Up @@ -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 = ''
Expand Down

0 comments on commit dfd89b0

Please sign in to comment.