Traceback (most recent call last):


 "manage.py", line 118, in <module>

cmds(default_map=default_map)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__

return self.main(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main

rv = self.invoke(ctx)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke

return callback(*args, **kwargs)


 "manage.py", line 104, in scheduler

scheduler_app()


 "/home/ewall-desk-05/mining/mining/bin/scheduler.py", line 82, in scheduler_app

cube = mongo['cube'].find_one({'slug': element['cube']})
TypeError: 'NoneType' object has no attribute '__getitem__'

Traceback (most recent call last):


 "/opt/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 82, in async_setup

SLOW_SETUP_MAX_WAIT, loop=hass.loop)


 "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for

return fut.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)


 "/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/sabnzbd.py", line 152, in async_setup_platform

if not (yield from async_check_sabnzbd(SabnzbdApi, base_url, api_key)):


 "/opt/homeassistant/lib/python3.5/site-packages/homeassistant/components/sensor/sabnzbd.py", line 62, in async_check_sabnzbd

yield from sab_api.check_available()


 "/opt/homeassistant/lib/python3.5/site-packages/pysabnzbd/__init__.py", line 61, in check_available

await self.call(params)


 "/opt/homeassistant/lib/python3.5/site-packages/pysabnzbd/__init__.py", line 19, in call

resp = await session.get(self.api_url, params=api_params)


 "/opt/homeassistant/lib/python3.5/site-packages/aiohttp/client.py", line 312, in _request

ssl=ssl, proxy_headers=proxy_headers)


 "/opt/homeassistant/lib/python3.5/site-packages/aiohttp/client_reqrep.py", line 181, in __init__

url2 = url.with_query(params)


 "/opt/homeassistant/lib/python3.5/site-packages/yarl/__init__.py", line 851, in with_query

new_query = self._get_str_query(*args, **kwargs)


 "/opt/homeassistant/lib/python3.5/site-packages/yarl/__init__.py", line 819, in _get_str_query

"should be str or int, got {!r}".format(v))
TypeError: Invalid variable type: mapping value should be str or int, got None
