mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Catch NoSuchElementException instead of BaseException
This commit is contained in:
@@ -400,7 +400,7 @@ class KleinanzeigenBot(SeleniumMixin):
|
||||
try:
|
||||
self.web_find(By.XPATH, "//*[@id='postad-category-path'][text()]")
|
||||
is_category_auto_selected = True
|
||||
except BaseException:
|
||||
except NoSuchElementException:
|
||||
is_category_auto_selected = False
|
||||
|
||||
if ad_cfg["category"]:
|
||||
|
||||
Reference in New Issue
Block a user