|
发表于 2018-3-26 19:39:55
|
显示全部楼层
本帖最后由 13857781577 于 2018-3-26 20:08 编辑
出现以下错误
File "/config/custom_components/dlna.py", line 53, in scan_devices
None, dlna.discover_MediaPlayer)
File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
future.result()
File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/dlna.py", line 212, in discover_MediaPlayer
device = self.register_device(location_url)
File "/config/custom_components/dlna.py", line 131, in register_device
UPNP_DEFAULT_SERVICE_TYPE = re.search("urn:schemas-upnp-org:service:AVTransport:\d+",xml).group()
AttributeError: 'NoneType' object has no attribute 'group'
|
|