mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
[#37 state:fixed] Ignore AlreadyExistsError in IPhotoLibrary.
--HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%4086
This commit is contained in:
parent
e618a9bc55
commit
de178a5aba
@ -103,7 +103,11 @@ class IPhotoLibrary(fs.Directory):
|
|||||||
subdir = subdir[element]
|
subdir = subdir[element]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
subdir = fs.Directory(subdir, element)
|
subdir = fs.Directory(subdir, element)
|
||||||
IPhoto(subdir, photo_path)
|
try:
|
||||||
|
IPhoto(subdir, photo_path)
|
||||||
|
except fs.AlreadyExistsError:
|
||||||
|
# it's possible for 2 entries in the plist to point to the same path. Ignore one of them.
|
||||||
|
pass
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
self.clear()
|
self.clear()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user