Narrated Web Site: warnings reported to console

Fixes : #10283
This commit is contained in:
SNoiraud 2017-11-25 10:22:02 +01:00
parent 88639fcd7d
commit 408caa6c0f

View File

@ -1940,6 +1940,7 @@ class BasePage: # pylint: disable=C1001
photo = photolist_handles[photoref.ref] photo = photolist_handles[photoref.ref]
photolist_ordered.append(photo) photolist_ordered.append(photo)
try: try:
if photo in photolist:
photolist.remove(photo) photolist.remove(photo)
except ValueError: except ValueError:
LOG.warning("Error trying to remove '%s' from photolist", LOG.warning("Error trying to remove '%s' from photolist",