FIX edge case name without link

This commit is contained in:
Philipp K
2022-11-07 18:23:00 +01:00
committed by Sebastian Thomschke
parent d7ccc8954b
commit a50dead2a7
2 changed files with 5 additions and 2 deletions

View File

@@ -716,7 +716,7 @@ class KleinanzeigenBot(SeleniumMixin):
n_images = int(image_counter.text[2:])
logger.info('Found %d images.', n_images)
next_button = self.webdriver.find_element(By.CSS_SELECTOR, '.galleryimage--navigation--next')
except NoSuchElementException:
except (NoSuchElementException, IndexError):
logger.info('Only one image found.')
# download all images from box