Traceback (most recent call last):


 "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity_platform.py", line 248, in _async_add_entity

await entity.async_device_update(warning=False)


 "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity.py", line 349, in async_device_update

await self.hass.async_add_executor_job(self.update)


 "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup

future.result()


 "/usr/lib/python3.5/asyncio/futures.py", line 293, in result

raise self._exception


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

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


 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/sensor/deutsche_bahn.py", line 82, in update

self.data.update()


 "/usr/local/lib/python3.5/dist-packages/homeassistant/components/sensor/deutsche_bahn.py", line 105, in update

self.only_direct)


 "/home/homeassistant/.homeassistant/deps/lib/python3.5/site-packages/schiene/schiene.py", line 135, in connections

return parse_connections(rsp.text)


 "/home/homeassistant/.homeassistant/deps/lib/python3.5/site-packages/schiene/schiene.py", line 35, in parse_connections

data = parse_delay(data)


 "/home/homeassistant/.homeassistant/deps/lib/python3.5/site-packages/schiene/schiene.py", line 65, in parse_delay

delay_arrival_raw = soup.find('div', class_="routeEnd").find('span', class_=["delay", "delayOnTime"])
AttributeError: 'NoneType' object has no attribute 'find'

Traceback (most recent call last):


 "test.py", line 56, in <module>

torch.onnx.export(model, dummy_input, "Deblur.onnx")


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/__init__.py", line 143, in export

strip_doc_string, dynamic_axes, keep_initializers_as_inputs)


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/utils.py", line 66, in export

dynamic_axes=dynamic_axes, keep_initializers_as_inputs=keep_initializers_as_inputs)


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/utils.py", line 382, in _export

fixed_batch_size=fixed_batch_size)


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/utils.py", line 249, in _model_to_graph

graph, torch_out = _trace_and_get_graph_from_model(model, args, training)


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/onnx/utils.py", line 198, in _trace_and_get_graph_from_model

orig_state_dict_keys = _unique_state_dict(model).keys()


 "/Users/heojin/anaconda3/envs/tensorflow/lib/python3.7/site-packages/torch/jit/__init__.py", line 282, in _unique_state_dict

state_dict = module.state_dict(keep_vars=True)
AttributeError: 'TestModel' object has no attribute 'state_dict'
