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