From f5c20b149b1defa9293af41b99ddc575d980c2be Mon Sep 17 00:00:00 2001 From: hsoft Date: Sat, 3 Oct 2009 10:27:32 +0000 Subject: [PATCH] [#39 state:fixed] Wrapped the LookupError in DupeGuru.save() --HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40169 --- base/py/app.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/base/py/app.py b/base/py/app.py index 6fb6f1e2..0748ac2c 100644 --- a/base/py/app.py +++ b/base/py/app.py @@ -218,8 +218,13 @@ class DupeGuru(RegistrableApplication): changed_groups.add(g) def save(self): - self.directories.save_to_file(op.join(self.appdata, 'last_directories.xml')) - self.results.save_to_xml(op.join(self.appdata, 'last_results.xml')) + 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 def save_ignore_list(self): p = op.join(self.appdata, 'ignore_list.xml')