1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Re-implemented the fix for utf-8 lookup error during auto-update in a more graceful way.

This commit is contained in:
Virgil Dupras
2010-02-05 16:51:00 +01:00
parent a570406ac8
commit 9ca8a199c0
10 changed files with 56 additions and 46 deletions

View File

@@ -212,13 +212,8 @@ class DupeGuru(RegistrableApplication):
changed_groups.add(g)
def save(self):
try:
self.directories.save_to_file(op.join(self.appdata, 'last_directories.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
self.directories.save_to_file(op.join(self.appdata, 'last_directories.xml'))
self.results.save_to_xml(op.join(self.appdata, 'last_results.xml'))
def save_ignore_list(self):
p = op.join(self.appdata, 'ignore_list.xml')