mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11: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,8 +120,8 @@ class Amazon(callbacks.PrivmsgCommandAndRegexp):
|
||||
else:
|
||||
results['url'] = ' <%s>' % results['url']
|
||||
s = reply % results
|
||||
s = u'%s' % s
|
||||
s = s.encode('utf-8')
|
||||
if isinstance(s, unicode):
|
||||
s = s.encode('utf-8')
|
||||
res.append(str(s))
|
||||
except amazon.AmazonError, e:
|
||||
self.log.warning(str(e))
|
||||
|
Loading…
Reference in New Issue
Block a user