# HG changeset patch # User Erik Grinaker # Date 1187157500 0 # Node ID 703d26ed2218a24bce864b2c33ed201d7cf13652 # Parent dc6f5e1b5dc0462f5699570b615f4487ec3fa200 fixed crash when entering insecure password on some systems diff -r dc6f5e1b5dc0462f5699570b615f4487ec3fa200 -r 703d26ed2218a24bce864b2c33ed201d7cf13652 NEWS --- a/NEWS Wed Aug 15 05:55:47 2007 +0000 +++ b/NEWS Wed Aug 15 05:58:20 2007 +0000 @@ -5,6 +5,7 @@ - fixed crash in XHTML exporter [Javier Kohen] - fixed crash when saving file after certain imports - fixed crash when searching on some systems +- fixed crash when entering insecure password on some systems Translation: - added finnish translation [Ilkka Tuohela] diff -r dc6f5e1b5dc0462f5699570b615f4487ec3fa200 -r 703d26ed2218a24bce864b2c33ed201d7cf13652 src/lib/dialog.py --- a/src/lib/dialog.py Wed Aug 15 05:55:47 2007 +0000 +++ b/src/lib/dialog.py Wed Aug 15 05:58:20 2007 +0000 @@ -814,9 +814,11 @@ util.check_password(password) except ValueError, res: + res = str(res).lower() + response = Warning( self, _('Use insecure password?'), - _('The password you entered is not secure; %s. Are you sure you want to use it?') % str(res).lower(), + _('The password you entered is not secure; %s. Are you sure you want to use it?') % res, ( ( gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL ), ( gtk.STOCK_OK, gtk.RESPONSE_OK ) ), gtk.RESPONSE_CANCEL ).run()