dziban303

wxbot alerts crash

Jun 26th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.88 KB | None | 0 0
  1. 2019-06-26 06:02:06,408 INFO got command alert {'ident': ':dziban303!dziban303', 'command': 'alert', 'sender': 'dziban303', 'msg': 'alert 1', 'chan': '#TropicalWeather', 'args': '1', 'mask': 'user/dziban303', 'bot': <pythabot.Pythabot instance at 0x7f33337d7d40>}
  2. Traceback (most recent call last):
  3.   File "pywx.py", line 23, in <module>
  4.     bot.listen()
  5.   File "/root/virtualenvironment/dziwx/pywx/pythabot.py", line 119, in listen
  6.     self.initparse(line)
  7.   File "/root/virtualenvironment/dziwx/pywx/pythabot.py", line 70, in initparse
  8.     self.parse(parsedline)
  9.   File "/root/virtualenvironment/dziwx/pywx/pythabot.py", line 78, in parse
  10.     reply = command.run(msg)
  11.   File "/root/virtualenvironment/dziwx/pywx/modules/weather.py", line 420, in run
  12.     lines.append(str(line))
  13. UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 367: ordinal not in range(128)
Advertisement
Add Comment
Please, Sign In to add comment