From 8c36218150e716ac460070f63a9746d00482e2dd Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 28 Oct 2012 11:06:09 -0400 Subject: [PATCH] In addition to EnvironmentError, catch UnicodeEncodeError when performing actions on marked duplicates. When running dupeGuru under Linux with a messed up locale, it's UnicodeEncodeError we get. Instead of popping a reportable traceback, it's better to just pop the Problems dialog up. --- core/results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/results.py b/core/results.py index 1600209f..a875889d 100644 --- a/core/results.py +++ b/core/results.py @@ -265,7 +265,7 @@ class Results(Markable): try: func(dupe) to_remove.append(dupe) - except EnvironmentError as e: + except (EnvironmentError, UnicodeEncodeError) as e: self.problems.append((dupe, str(e))) if remove_from_results: self.remove_duplicates(to_remove)