dbzlotrfan: So I want to download some Linux executable files via the terminal with gogrepo, but I get:
>
> Exception in thread Thread-4:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
> self.run()
> File "/usr/lib/python2.7/threading.py", line 754, in run
> self.__target(*self.__args, **self.__kwargs)
> File "./gogrepo.py", line 915, in worker
> hdr = page.headers['Content-Range'].split()[-1]
> File "/usr/lib/python2.7/rfc822.py", line 393, in __getitem__
> return self.dict[name.lower()]
> KeyError: u'content-range'
>
> Exception in thread Thread-2:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
> self.run()
> File "/usr/lib/python2.7/threading.py", line 754, in run
> self.__target(*self.__args, **self.__kwargs)
> File "./gogrepo.py", line 915, in worker
> hdr = page.headers['Content-Range'].split()[-1]
> File "/usr/lib/python2.7/rfc822.py", line 393, in __getitem__
> return self.dict[name.lower()]
> KeyError: u'content-range'
When I put in ./gogrepo.py download in the terminal. What's the issue? Using Linux Mint 18.3 (Cinnamon)
I tried to duplicate this error in order to fix it but I can't. Could you verify that it still happens on the latest version of gogrepo and if it does let me know the exact command you're using and what commands you used to create your manifest.
It doesn't look like this error is a result of having filtered manifest content to zero (which would result in an empty work queue and terminate before calling any workers) , rather it looks like the page object has no context-range entry in it's header.
It's hard to diagnose this further without info from a later version since the use of the requests module has actually replaced the code in question. Especially since this outcome should be impossible using requests as it should error out safely before this happens.