don't complain if one image in a bulk revert doesn't exist

This commit is contained in:
Shish 2015-10-12 19:17:16 +01:00
parent d30665d274
commit 3aed2abec7

View file

@ -329,7 +329,8 @@ class Tag_History extends Extension {
$image = Image::by_id($stored_image_id);
if ( ! $image instanceof Image) {
throw new ImageDoesNotExist("Error: cannot find any image with the ID = ". $stored_image_id);
continue;
//throw new ImageDoesNotExist("Error: cannot find any image with the ID = ". $stored_image_id);
}
log_debug("tag_history", 'Reverting tags of Image #'.$stored_image_id.' to ['.$stored_tags.']');