Use unicode string for returned message in geoip

This commit is contained in:
prplz 2014-03-18 16:20:12 +11:00
parent 4b7c8ffa75
commit b917b495f7
1 changed files with 1 additions and 1 deletions

View File

@ -51,4 +51,4 @@ def geoip(inp):
data["cc"] = record["country_code"] or "N/A"
data["country"] = record["country_name"] or "Unknown"
data["city"] = record["city"] or "Unknown"
return "\x02Country:\x02 {country} ({cc}), \x02City:\x02 {city}{region}".format(**data)
return u"\x02Country:\x02 {country} ({cc}), \x02City:\x02 {city}{region}".format(**data)