X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fadd_user.py;h=8ab4d2302077e41a69487b15203652bcad2cbac9;hb=c72ca020c81a70f4813a12afbdc01f57be9d32bf;hp=f2391bd65acf59cf64a9613b4c5fbeb111dbb060;hpb=7251cf5c1327938c02423fc933615dbb97675d2b;p=dak.git diff --git a/dak/add_user.py b/dak/add_user.py index f2391bd6..8ab4d230 100755 --- a/dak/add_user.py +++ b/dak/add_user.py @@ -66,7 +66,7 @@ def HashPass(Password): Salt = Salt + SaltVals[ord(Rand.read(1)[0]) % len(SaltVals)] Pass = crypt.crypt(Password,Salt) if len(Pass) < 14: - raise "Password Error", "MD5 password hashing failed, not changing the password!" + raise RuntimeError("MD5 password hashing failed, not changing the password!") return Pass ################################################################################