Skip to content

Commit

Permalink
Fix default value for SELENIUM_DRIVER_ARGUMENTS as empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
laggardkernel committed Jul 23, 2021
1 parent 2e557f6 commit f133559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy_selenium/middlewares.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def from_crawler(cls, crawler):
driver_executable_path = crawler.settings.get('SELENIUM_DRIVER_EXECUTABLE_PATH')
browser_executable_path = crawler.settings.get('SELENIUM_BROWSER_EXECUTABLE_PATH')
command_executor = crawler.settings.get('SELENIUM_COMMAND_EXECUTOR')
driver_arguments = crawler.settings.get('SELENIUM_DRIVER_ARGUMENTS')
driver_arguments = crawler.settings.getlist('SELENIUM_DRIVER_ARGUMENTS')

if driver_name is None:
raise NotConfigured('SELENIUM_DRIVER_NAME must be set')
Expand Down

0 comments on commit f133559

Please sign in to comment.