mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Let's do this a slightly better way that I saw in one of the src/ files
This commit is contained in:
parent
6b59933673
commit
23332315c9
@ -120,7 +120,7 @@ class Amazon(callbacks.PrivmsgCommandAndRegexp):
|
||||
else:
|
||||
results['url'] = ' <%s>' % results['url']
|
||||
s = reply % results
|
||||
s = u'%s' % s
|
||||
if isinstance(s, unicode):
|
||||
s = s.encode('utf-8')
|
||||
res.append(str(s))
|
||||
except amazon.AmazonError, e:
|
||||
|
Loading…
Reference in New Issue
Block a user