deibit / cansina

Web Content Discovery Tool
GNU General Public License v3.0
880 stars 238 forks source link

Exception when using resume feature in Python 3.6 #28

Open deibit opened 6 years ago

deibit commented 6 years ago

`Waiting for threads to stop... Keep a resume file? [y/N] y setting line to 532 Traceback (most recent call last): File "./cansina.py", line 374, in if not manager.get_a_task(visitors_alive): File "...cansina/core/dbmanager.py", line 53, in get_a_task task = self.queue.get(False) File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/queue.py", line 160, in get if not self._qsize(): File "/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/queue.py", line 203, in _qsize return len(self.queue) KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./cansina.py", line 383, in pickle.dump(resumer, f) TypeError: write() argument must be str, not bytes`