Traceback (most recent call last):


 "/tmp/scancode-toolkit/src/scancode/interrupt.py", line 92, in interruptible

return NO_ERROR, func(*(args or ()), **(kwargs or {}))


 "/tmp/scancode-toolkit/src/scancode/api.py", line 199, in get_licenses

location=location, min_score=min_score, deadline=deadline, **kwargs)


 "/tmp/scancode-toolkit/src/licensedcode/index.py", line 855, in match

existing_matches=matches, deadline=deadline)


 "/tmp/scancode-toolkit/src/licensedcode/index.py", line 587, in get_spdx_id_matches

self, query_run, detectable_text)


 "/tmp/scancode-toolkit/src/licensedcode/match_spdx_lid.py", line 100, in spdx_id_match

expression_str = expression.render()
AttributeError: 'NoneType' object has no attribute 'render'

Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state

yield from self.async_device_update()


 "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 309, in async_device_update

yield from self.hass.async_add_job(self.update)


 "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup

future.result()


 "/usr/lib/python3.6/asyncio/futures.py", line 244, in result

raise self._exception


 "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 492, in update

self.update_devices(no_throttle=True)


 "/usr/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 306, in wrapper

result = method(*args, **kwargs)


 "/usr/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 306, in wrapper

result = method(*args, **kwargs)


 "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 173, in update_devices

update_sessions, plexserver)


 "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 280, in __init__

self.refresh(device, session)


 "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/plex.py", line 343, in refresh

if self._device.machineIdentifier is not None and \
AttributeError: 'NoneType' object has no attribute 'machineIdentifier'
