|
Error doing job: Task exception was never retrievedTraceback (most recent call last): File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step result = coro.throw(exc) File "/home/homeassistant/.homeassistant/custom_components/dlna.py", line 53, in scan_devices None, dlna.discover_MediaPlayer) File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__ yield self # This tells Task to wait for completion. File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/home/homeassistant/.homeassistant/custom_components/dlna.py", line 212, in discover_MediaPlayer device = self.register_device(location_url) File "/home/homeassistant/.homeassistant/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'
有个兄弟说一直就有这个bug 自己default的那段加个try except就可以了 | 不知道这个是在哪里改
|
|