ArchiveTeam / NewsGrabber

Grabbing all news.
62 stars 32 forks source link

last_upload_* files are sometimes not saved well during a bad event like a crash #42

Closed Arkiver2 closed 7 years ago

Arkiver2 commented 8 years ago

If the script finds there are problems with one or more of the lastupload* files it should go through the files and fix them if needed.

Arkiver2 commented 8 years ago

Log:

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "main.py", line 183, in upload
    itemsize, itemnum = uploadfile.read().split(',', 1)
ValueError: need more than 1 value to unpack
Arkiver2 commented 7 years ago

These files are not used anymore in the new version of the main scripts.