Skip to content

Locale issue #66

@drsurfer

Description

@drsurfer

Hello everyone.
I had this issue from the last month, but I hadn't the time to look at it before, and I ended up renewing manually.
Due to some changes on no-ip website, it checks for locale. The script on my RPi gave an exception because it didn't know how to manage this popup:

exc

I've experimented a little and fixed it by adding these two lines to the selenium options:

options.add_argument("--lang=it-IT")
options.add_argument("--accept-lang=it-IT")

I've started with the first line, but it hasn't worked, so I've added the second one. It seems the second one is enough, but leaving both surely doesn't hurt, so I've left there.
Of course this is for my own configuration, and Italian locale. For other locales, you need to change the locale id accordingly.
If you don't have the needed locale on your system, you need to add it with
sudo dpkg-reconfigure locales.

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