зеркало из https://github.com/openwpm/OpenWPM.git
Merge branch 'turn_browser_and_manager_params_into_dataclasses' of https://github.com/ankushduacodes/OpenWPM into turn_browser_and_manager_params_into_dataclasses
This commit is contained in:
Коммит
6ecaf5d0a9
|
@ -57,11 +57,10 @@ def validate_browser_params(browser_params: BrowserParams):
|
|||
return
|
||||
|
||||
|
||||
if browser_params.display_mode.lower() not in DISPLAY_MODE_VALIDATION_LIST:
|
||||
raise ConfigError(
|
||||
"Unrecognized value provided for BrowserParams.display_mode. "
|
||||
"Please look into BrowserParams Documentation for more information"
|
||||
)
|
||||
CONFIG_ERROR_STRING="Found {value} as value for {paramter_name} in BrowserParams."
|
||||
"Supported values are {value_list}
|
||||
"Please look at docs/Configuration.md#browser-configuration-options"
|
||||
raise ConfigError(CONFIG_ERROR_STRING.format(value=browser_params.display_mode, value_list=DISPLAY_MODE_VALIDATION_LIST, parameter_name = "display_mode`)
|
||||
|
||||
if browser_params.browser.lower() not in SUPPORTED_BROWSER_LIST:
|
||||
raise ConfigError(
|
||||
|
|
Загрузка…
Ссылка в новой задаче