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
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to