[modules/currency] Use unicode strings

see #169
This commit is contained in:
Tobias Witek 2017-09-07 16:16:35 +02:00
parent 86de505cda
commit 4ebce517cc

View file

@ -41,10 +41,10 @@ class Module(bumblebee.engine.Module):
gbpeur = "-" gbpeur = "-"
gbpusd = "-" gbpusd = "-"
self._price = "£/€ " + gbpeur + " | £/$ " + gbpusd self._price = u"£/€ " + gbpeur + u" | £/$ " + gbpusd
self._valid = True self._valid = True
except RequestException: except RequestException:
self._price = "£/€ - | £/$ -" self._price = u"£/€ - | £/$ -"
self._valid = True self._valid = True
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4