bibanon / eve

Asagi replacement written in Python
16 stars 3 forks source link

Unhandled AssertionError breaks downloading #17

Open AGSPhoenix opened 5 years ago

AGSPhoenix commented 5 years ago
backdoor server listening on 127.0.0.1:3000
0qDB 0q4CH 0qMEDIA fetched qa/threads.json
0qDB 152q4CH 0qMEDIA fetched qa/2377476
Traceback (most recent call last): post qa:2378948
  File "/home/eve/eve/venv/lib/python3.6/site-packages/eventlet/hubs/hub.py", line 458, in fire_timers
    timer()
  File "/home/eve/eve/venv/lib/python3.6/site-packages/eventlet/hubs/timer.py", line 58, in __call__
    cb(*args, **kw)
  File "/home/eve/eve/venv/lib/python3.6/site-packages/eventlet/event.py", line 168, in _do_send
    waiter.switch(result)
  File "/home/eve/eve/venv/lib/python3.6/site-packages/eventlet/greenthread.py", line 218, in main
    result = function(*args, **kwargs)
  File "eve.py", line 322, in fetcher
    self.download(post['no'], post['resto'] == 0, False, post['tim'], post['ext'], post['md5'])
  File "eve.py", line 335, in download
    assert result == 1
AssertionError

Traceback (most recent call last):
  File "/home/eve/eve/venv/lib/python3.6/site-packages/eventlet/hubs/hub.py", line 458, in fire_timers
    timer()
  File "/home/eve/eve/venv/lib/python3.6/site-packages/eventlet/hubs/timer.py", line 58, in __call__
    cb(*args, **kw)
  File "/home/eve/eve/venv/lib/python3.6/site-packages/eventlet/event.py", line 168, in _do_send
    waiter.switch(result)
  File "/home/eve/eve/venv/lib/python3.6/site-packages/eventlet/greenthread.py", line 218, in main
    result = function(*args, **kwargs)
  File "eve.py", line 322, in fetcher
    self.download(post['no'], post['resto'] == 0, False, post['tim'], post['ext'], post['md5'])
  File "eve.py", line 335, in download
    assert result == 1
AssertionError
1032qDB 151q4CH 9qMEDIA fetched qa/2550538

Media queue just grows after this, because the exception kills fetcher().