minor fix

This commit is contained in:
2025-08-14 13:11:22 +08:00
parent c7cfded78f
commit 64497729ad

View File

@@ -308,11 +308,12 @@ def main():
case hour if 6 <= hour < 12: hello = registry[0]
case hour if 12 <= hour < 18: hello = registry[1]
case hour if 18 <= hour < 21: hello = registry[2]
case _: hello = locale.get('default')
case _: hello = None
iframe = driver.switch_to.active_element
action = ActionChains(driver)
clean = False
hello = hello or locale.get('default')
if name is not None and (name := str(name).strip()) and not contains_non_latin_alphabet(name):
parts = HumanName(name)