Skip to content

Commit

Permalink
Fixes #220
Browse files Browse the repository at this point in the history
  • Loading branch information
DreckSoft authored and sebthom committed Oct 20, 2023
1 parent 0841b7c commit 7b71309
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kleinanzeigen_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,10 @@ def publish_ad(self, ad_file:str, ad_cfg: dict[str, Any], ad_cfg_orig: dict[str,
#############################
price_type = ad_cfg["price_type"]
if price_type != "NOT_APPLICABLE":
self.web_select(By.XPATH, "//select[@id='price-type-react' or @id='micro-frontend-price-type' or @id='priceType']", price_type)
try:
self.web_select(By.XPATH, "//select[@id='price-type-react' or @id='micro-frontend-price-type' or @id='priceType']", price_type)
except NoSuchElementException:
pass
if safe_get(ad_cfg, "price"):
self.web_input(By.XPATH, "//input[@id='post-ad-frontend-price' or @id='micro-frontend-price' or @id='pstad-price']", ad_cfg["price"])

Expand Down

0 comments on commit 7b71309

Please sign in to comment.