tripleee / sloshy

Sloshy the Thawman, a simple chatbot to keep rooms alive on Stack Overflow / Stack Exchange
6 stars 11 forks source link

ValueError: unconverted data remains: (page 2 of 2) #13

Closed tripleee closed 3 years ago

tripleee commented 3 years ago

Date parsing failed in latest nightly run.

https://github.com/tripleee/sloshy/actions/runs/1051003049

Traceback (most recent call last):
72
  File "./run.py", line 18, in <module>
73
    Sloshy("sloshy.yaml").perform_scan("nightly run")
74
  File "/home/runner/work/sloshy/sloshy/sloshy.py", line 311, in perform_scan
75
    self.scan_rooms(startup_message)
76
  File "/home/runner/work/sloshy/sloshy/sloshy.py", line 287, in scan_rooms
77
    room_latest = fetcher.latest(room.id, room.server)
78
  File "/home/runner/work/sloshy/sloshy/scrape_chat.py", line 108, in latest
79
    for message in self.messages(server, room):
80
  File "/home/runner/work/sloshy/sloshy/scrape_chat.py", line 66, in messages
81
    date = datetime.strptime(datestr, '%Y-%m-%d')
82
  File "/usr/lib/python3.8/_strptime.py", line 568, in _strptime_datetime
83
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
84
  File "/usr/lib/python3.8/_strptime.py", line 352, in _strptime
85
    raise ValueError("unconverted data remains: %s" %
86
ValueError: unconverted data remains:  (page 2 of 2)