1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-03-10 05:34:36 +00:00

[#39 state:fixed] Wrapped the LookupError in DupeGuru.save()

--HG--
extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40169
This commit is contained in:
hsoft 2009-10-03 10:27:32 +00:00
parent 627fac0d2e
commit f5c20b149b

View File

@ -218,8 +218,13 @@ class DupeGuru(RegistrableApplication):
changed_groups.add(g) changed_groups.add(g)
def save(self): def save(self):
try:
self.directories.save_to_file(op.join(self.appdata, 'last_directories.xml')) self.directories.save_to_file(op.join(self.appdata, 'last_directories.xml'))
self.results.save_to_xml(op.join(self.appdata, 'last_results.xml')) self.results.save_to_xml(op.join(self.appdata, 'last_results.xml'))
except LookupError:
# This is that weird issue from #39 that sometimes happens when auto-updating with
# Sparkle. Just ignore it.
pass
def save_ignore_list(self): def save_ignore_list(self):
p = op.join(self.appdata, 'ignore_list.xml') p = op.join(self.appdata, 'ignore_list.xml')