[Zope-Checkins] SVN: Zope/trunk/utilities/zpasswd.py better error
message for unsupport encoding
Andreas Jung
andreas at andreas-jung.com
Sun Aug 7 08:40:19 EDT 2005
Log message for revision 37766:
better error message for unsupport encoding
Changed:
U Zope/trunk/utilities/zpasswd.py
-=-
Modified: Zope/trunk/utilities/zpasswd.py
===================================================================
--- Zope/trunk/utilities/zpasswd.py 2005-08-07 09:48:42 UTC (rev 37765)
+++ Zope/trunk/utilities/zpasswd.py 2005-08-07 12:40:19 UTC (rev 37766)
@@ -65,6 +65,8 @@
pw = '{CRYPT}' + crypt(password, generate_salt())
elif encoding == 'CLEARTEXT':
pw = password
+ else:
+ raise ValueError('Unsupported encoding: %s' % encoding)
return pw
More information about the Zope-Checkins
mailing list