Fix #101 crash if description is exceeds 4000 chars

This commit is contained in:
sebthom
2022-09-28 18:49:13 +02:00
parent 13313377a7
commit 41c8264698

View File

@@ -238,6 +238,7 @@ class KleinanzeigenBot(SeleniumMixin):
continue
ad_cfg["description"] = descr_prefix + (ad_cfg["description"] or "") + descr_suffix
ensure(len(ad_cfg["description"]) <= 4000, f"Length of ad description including prefix and suffix exceeds 4000 chars. @ [{ad_file}]")
# pylint: disable=cell-var-from-loop
def assert_one_of(path:str, allowed:Iterable[str]) -> None: