Skip to content

Error when no SELENIUM_DRIVER_ARGUEMNTS are set in settings.py #138

@nacer-benyoub

Description

@nacer-benyoub

When no SELENIUM_DRIVER_ARGUEMNTS are set in settings.py, the error TypeError: 'NoneType' object is not iterable is raised. This should be a simple fix in middleware.py by adding:

if driver_arguments is not None:
    for argument in driver_arguments:
        driver_options.add_argument(argument)

Instead of iterating directly on driver_arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions