Fix yield photo should only happen when not exception.
This commit is contained in:
parent
023c540dbf
commit
017633331b
1 changed files with 1 additions and 1 deletions
|
@ -58,9 +58,9 @@ def get_photos_by_glob(pattern):
|
|||
for file in files:
|
||||
try:
|
||||
photo = photodb.get_photo_by_path(file)
|
||||
yield photo
|
||||
except etiquette.exceptions.NoSuchPhoto:
|
||||
pass
|
||||
yield photo
|
||||
|
||||
def get_photos_by_globs(patterns):
|
||||
for pattern in patterns:
|
||||
|
|
Loading…
Reference in a new issue