Skip to content

Traceback if req is None #64

Description

@tchellomello

Report by: @lunatix https://community.home-assistant.io/t/ring-doorbell/7943/300

2017-10-26 13:52:44 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/srv/hass/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 422, in start
    resp = yield from self._request_handler(request)
  File "/srv/hass/lib/python3.6/site-packages/aiohttp/web.py", line 306, in _handle
    resp = yield from handler(request)
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 213, in coro
    res = yield from res
  File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 213, in coro
    res = yield from res
  File "/srv/hass/lib/python3.6/site-packages/homeassistant/components/http/ban.py", line 58, in ban_middleware_handler
    return (yield from handler(request))
  File "/srv/hass/lib/python3.6/site-packages/homeassistant/components/http/__init__.py", line 430, in handle
    result = yield from result
  File "/srv/hass/lib/python3.6/site-packages/homeassistant/components/camera/__init__.py", line 333, in get
    response = yield from self.handle(request, camera)
  File "/srv/hass/lib/python3.6/site-packages/homeassistant/components/camera/__init__.py", line 353, in handle
    image = yield from camera.async_camera_image()
  File "/home/hass/.homeassistant/custom_components/camera/ring.py", line 70, in async_camera_image
    self.update()
  File "/home/hass/.homeassistant/custom_components/camera/ring.py", line 115, in update
    self._refresh_attrs()
  File "/home/hass/.homeassistant/custom_components/camera/ring.py", line 123, in _refresh_attrs
    self._video_url = self._camera.recording_url(self._last_video_id)
  File "/srv/hass/lib/python3.6/site-packages/ring_doorbell/__init__.py", line 615, in recording_url
    if req.status_code == 200:
AttributeError: 'NoneType' object has no attribute 'status_code'

Metadata

Metadata

Assignees

Labels

bugLabel for issues that report a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions