Skip to content

Commit 7844e32

Browse files
committed
Fix default value for SELENIUM_DRIVER_ARGUMENTS as empty list
1 parent cf29263 commit 7844e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrapy_selenium/middlewares.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def from_crawler(cls, crawler):
7373
driver_executable_path = crawler.settings.get('SELENIUM_DRIVER_EXECUTABLE_PATH')
7474
browser_executable_path = crawler.settings.get('SELENIUM_BROWSER_EXECUTABLE_PATH')
7575
command_executor = crawler.settings.get('SELENIUM_COMMAND_EXECUTOR')
76-
driver_arguments = crawler.settings.get('SELENIUM_DRIVER_ARGUMENTS')
76+
driver_arguments = crawler.settings.get('SELENIUM_DRIVER_ARGUMENTS', [])
7777

7878
if driver_name is None:
7979
raise NotConfigured('SELENIUM_DRIVER_NAME must be set')

0 commit comments

Comments
 (0)