dAbot icon indicating copy to clipboard operation
dAbot copied to clipboard

KeyError: 'location'

Open Liamb135 opened this issue 4 years ago • 0 comments

When running 'llama give random deviants' it throws this error:

Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\Scripts\dAbot-script.py", line 11, in load_entry_point('dAbot==2019.9.24.2', 'console_scripts', 'dAbot')() File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\dAbot\dAbot.py", line 812, in main run() File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\retrying.py", line 49, in wrapped_f return Retrying(*dargs, **dkw).call(f, *args, **kw) File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\retrying.py", line 206, in call return attempt.get(self._wrap_exception) File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\retrying.py", line 247, in get six.reraise(self.value[0], self.value[1], self.value[2]) File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\six.py", line 703, in reraise raise value File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\retrying.py", line 200, in call attempt = Attempt(fn(*args, **kwargs), attempt_number, False) File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\dAbot\dAbot.py", line 680, in run while True: give_llama_to_deviant(get_random('deviant')) File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\dAbot\dAbot.py", line 197, in get_random parsed = urlparse(get_redirected_url(url['random'] + what)) File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\dAbot\dAbot.py", line 194, in get_redirected_url return dA.head(url).headers['Location'] File "c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\requests\structures.py", line 52, in getitem return self._store[key.lower()][1] KeyError: 'location'

Liamb135 avatar May 21 '20 01:05 Liamb135