Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid 500 server error with IPv6 addresses (GeoIP) #754
I get 500 Server errors when searching for resources with a non-empty string.
The proposed try/except patch fixes the issue by returning the default empty string if geoip cannot find the country.
As far as I know, this is used for statistic purposes, so providing the country guessed by the IP it is not crucial for metashare.