* src/plugins/Check.py (fix_encoding): Fix mime type string.
In help:
2006-12-01  Alex Roitman  <shura@gramps-project.org>
	* sk/sk.po: Typo.



svn: r7748
This commit is contained in:
Alex Roitman
2006-12-02 07:30:15 +00:00
parent 11335bc6bc
commit bd7e25ee55
4 changed files with 11 additions and 1 deletions

View File

@ -309,6 +309,12 @@ class CheckIntegrity:
obj.path = Utils.fix_encoding( obj.path)
obj.desc = Utils.fix_encoding( obj.desc)
self.db.commit_media_object(obj,self.trans)
# Once we are here, fix the mime string if not str
if type(data[3]) != str:
try:
data[3] = str(data{3])
except:
data[3] = ""
self.progress.step()
def check_for_broken_family_links(self):