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:
ankushduacodes 2020-11-24 23:10:22 +05:30
Родитель e550c3bd60 dcd792ad43
Коммит 6ecaf5d0a9
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -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(