barnumbirr / wookie

wookie is a simple, open source, easy-to-use iRC RSS bot written in Python. It was designed to announce new torrent releases in a given iRC channel.
Other
14 stars 9 forks source link

ValueError on 'Ajouté le :' #8

Closed barnumbirr closed 9 years ago

barnumbirr commented 9 years ago
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 760, in run
    self.function(*self.args, **self.kwargs)
  File "wookie.py", line 150, in announce_refresh
    '%Y-%m-%d %H:%M:%S')
  File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data 'Ajout\xc3\xa9 le : 2014-12-14 01:25:47' does not match format '%Y-%m-%d %H:%M:%S'

There seems to be an issue breaking the time data, it should break after the : .

barnumbirr commented 9 years ago

Cannot reproduce error on local machine, only on dedicated server. Tried clearing the announce file, no change.

grm34 commented 9 years ago

Ok, encoding problem, 'é' char can not be replaced cause it does not match same encoding. This commit will fix the problem: https://github.com/c0ding/wookie/commit/27f0d3792bd77dd004f36ac4f9972e78e5a650a6

barnumbirr commented 9 years ago

FIxed by simply starting wookie in a screen session without -U .