else:
from urllib.request import urlopen
-def location(person, default=None): return lib.mod('userinfo')._get(person, 'location', default=None)
+def location(person, default=None): return lib.mod('userinfo').get(person, 'location', default=None)
def _dayofweek(dayname):
return ['mon','tue','wed','thu','fri','sat','sun'].index(dayname.lower())
'link': current['forecast_url'],
}
else:
- return "I don't know where to look! Try %sSETINFO LOCATION <your location>" % (lib.parent.trigger)
+ return "I don't know where to look! Try %sSETINFO LOCATION <your location>" % (lib.parent.trigger,)
@lib.hook(('weather','w'), needchan=False, wantchan=True)
@lib.help('[<location>]', 'show weather for your location')