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.
This commit is contained in:
Virgil Dupras 2012-10-28 11:06:09 -04:00
parent 7637e493a6
commit 8c36218150
1 changed files with 1 additions and 1 deletions

View File

@ -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)