[#97 state:fixed] Fixed a crash on load.

This commit is contained in:
Virgil Dupras 2010-07-14 10:50:15 +02:00
parent 56a39df635
commit a03e2a69d4
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class DupeGuru(RegistrableApplication, Broadcaster):
try:
for file in j.iter_with_progress(files, 'Reading metadata %d/%d'):
file._read_all_info(attrnames=self.data.METADATA_TO_READ)
except OSError:
except (OSError, IOError):
# If this error is raised, it means that a file was deleted while we were reading
# metadata. Proper handling of this rare occurrence is complex because there's no easy
# way to remove an arbitrary file from the Results. Thus, we simply clear them.