Skip to content

DB download does not exist due to date tick over #6

@rayleroux

Description

@rayleroux

"Error trying to download DB-IP lite geoip csv file. Bailing out..." when trying to download free DB as 2021-02 does not exist yet.

I've modified it to get 2021-01 but to add some resiliency to the script you could attempt the previous month on failure.

This is the line where the problem exists.

url = 'https://download.db-ip.com/free/dbip-country-lite-{}.csv.gz'.format(time.strftime("%Y-%m"))

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