Traceback (most recent call last):


 "c:\python27\lib\site-packages\twisted\internet\defer.py", line 1260, in _inlineCallbacks

result = g.send(result)


 "c:\python27\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request

response = yield method(request=request, spider=spider)


 "D:\SinaSpider-master\Sina_spider1\Sina_spider1\middleware.py", line 19, in process_request

cookie = random.choice(cookies)


 "c:\python27\lib\random.py", line 275, in choice

return seq[int(self.random() * len(seq))]
# raises IndexError if seq is empty
IndexError: list index out of range

Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 418, in start

resp = await task


 "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup

future.result()


 "/usr/lib/python3.5/asyncio/futures.py", line 293, in result

raise self._exception


 "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step

result = coro.send(None)


 "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_app.py", line 458, in _handle

resp = await handler(request)


 "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_middlewares.py", line 119, in impl

return await handler(request)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/real_ip.py", line 33, in real_ip_middleware

return await handler(request)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 67, in ban_middleware

return await handler(request)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/auth.py", line 216, in auth_middleware

return await handler(request)


 "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/view.py", line 115, in handle

result = await result


 "/home/homeassistant/.homeassistant/custom_components/hacs/frontend/views/api.py", line 182, in post

repository_name = repository_name.split()[0]
IndexError: list index out of range
