diff --git a/kleinanzeigen_bot/__init__.py b/kleinanzeigen_bot/__init__.py index 2bce235..3974a03 100644 --- a/kleinanzeigen_bot/__init__.py +++ b/kleinanzeigen_bot/__init__.py @@ -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"]: