I had the same problem (Revelation 0.4.11, Ubuntu 8.04), fixed
/usr/share/pyshared/revelation/datahandler/pwsafe.py with this patch:

--- pwsafe.py.BAK       2007-05-22 19:56:39.000000000 +1200
+++ pwsafe.py   2010-01-11 13:34:22.000000000 +1300
@@ -574,7 +574,10 @@
                                edata += create_field(uuid, FIELDTYPE_UUID)
                                edata += 
create_field(self.__get_group(entrystore, iter), FIELDTYPE_GROUP)
                                edata += create_field(e.name.encode(enc, 
"replace"), FIELDTYPE_TITLE)
-                               edata += 
create_field(e[entry.UsernameField].encode(enc, "replace"), FIELDTYPE_USER)
+                               s = e[entry.UsernameField]
+                               if s is None:
+                                       s = ""
+                               edata += create_field(s.encode(enc, "replace"), 
FIELDTYPE_USER)
                                edata += 
create_field(e[entry.PasswordField].encode(enc, "replace"), FIELDTYPE_PASSWORD)
                                edata += create_field(e.description.encode(enc, 
"replace"), FIELDTYPE_NOTES)
                                edata += create_field("", FIELDTYPE_END)


-- Stuart Rackham

-- 
AttributeError: 'NoneType' object has no attribute 'replace'
https://bugs.launchpad.net/bugs/120371
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to