mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 13:44:37 +00:00
[#97 state:fixed] Fixed a crash on load.
This commit is contained in:
parent
56a39df635
commit
a03e2a69d4
@ -88,7 +88,7 @@ class DupeGuru(RegistrableApplication, Broadcaster):
|
|||||||
try:
|
try:
|
||||||
for file in j.iter_with_progress(files, 'Reading metadata %d/%d'):
|
for file in j.iter_with_progress(files, 'Reading metadata %d/%d'):
|
||||||
file._read_all_info(attrnames=self.data.METADATA_TO_READ)
|
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
|
# 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
|
# 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.
|
# way to remove an arbitrary file from the Results. Thus, we simply clear them.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user