Closed satanmp closed 1 month ago
Under the default settings, the following error is reported: (<class 'ValueError'>, ValueError("Invalid locale: 'zh_Hant-HK'. All locales must be in the format of language[-script][-region]"), <traceback object at 0x000002A537CB11C0>)
with Camoufox(headless=False, geoip=True,i_know_what_im_doing=True, config = { "fonts": get_random_font_name(), # "locale:language": "zh-CN,zh", # "navigator.userAgent": useragent, }, humanize = True, os=('windows', 'macos', 'linux'), slow_mo=100, block_images=True,) as browser: context = browser.new_context() page = context.new_page()
beat.11
Fix has been added in the latest version of the python library.
Describe the bug:
Under the default settings, the following error is reported: (<class 'ValueError'>, ValueError("Invalid locale: 'zh_Hant-HK'. All locales must be in the format of language[-script][-region]"), <traceback object at 0x000002A537CB11C0>)
Screenshots:
To Reproduce:
Version:
beat.11