X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-useradd;h=0dee8c43bc211ef3bf0113455f1cca14c710ffaa;hb=refs%2Fheads%2Ffordsa;hp=77f71dcdbe547b706eceb94b1d3b169abb07e83d;hpb=4eaa444b9eb4c9d24cd2790f99a690054bf2f806;p=mirror%2Fuserdir-ldap.git diff --git a/ud-useradd b/ud-useradd index 77f71dc..0dee8c4 100755 --- a/ud-useradd +++ b/ud-useradd @@ -268,7 +268,7 @@ if Update == 0 or ForceMail == 1: "0x"+Keys[0][1],UsePGP2); Password = None; if CryptedPass is None: - raise "Error","Password Encryption failed" + raise Exception("Password Encryption failed") else: Pass = HashPass(Password); CryptedPass = "Your password has been set to the previously agreed value."; @@ -398,7 +398,7 @@ Child = os.popen("/usr/sbin/sendmail -t","w"); #Child = os.popen("cat","w"); Child.write(Reply); if Child.close() is not None: - raise Error, "Sendmail gave a non-zero return code"; + raise Exception("Sendmail gave a non-zero return code") # vim:set et: # vim:set ts=3: