error message on Crypt exception
This commit is contained in:
1 parent
4c48bf3cac
commit
5378ae2384
2 files changed
+3
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-07-05 09:31:20) dev
|
Version 2.00.0 (2012-07-05 10:47:05) dev
|
||||||
@@ -2539,6 +2539,8 @@ class LazyCrypt(object):
|
|||||||
if self.crypted:
|
if self.crypted:
|
||||||
return self.crypted
|
return self.crypted
|
||||||
if self.crypt.salt:
|
if self.crypt.salt:
|
||||||
|
if not self.crypt.key:
|
||||||
|
raise RuntimeError, "CRYPT has salt but not key"
|
||||||
if self.crypt.salt == True:
|
if self.crypt.salt == True:
|
||||||
salt = str(web2py_uuid()).replace('-','')[-16:]
|
salt = str(web2py_uuid()).replace('-','')[-16:]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user