davidpirogov / sopel-openweathermap

An OpenWeatherMap module for looking up the weather using the Sopel IRC bot
MIT License
2 stars 1 forks source link

setlocation breaks on capitalisation #1

Closed davidpirogov closed 2 years ago

davidpirogov commented 5 years ago

.setlocation stockholm user: Please refine your location by adding a country code. Valid options are: 'Stockholm,SE', 'Stockholm,US' .setlocation Stockholm AttributeError: 'dict' object has no attribute 'get_name' (file "....sopel/modules/owm-weather.py", line 80, in setlocation)

Probable fix in line 56 with

location_lookup = str(trigger.group(2)).lower()
davidpirogov commented 2 years ago

Fixed in v3