Fix a potential crash

pull/902/head
Julien Duponchelle 7 years ago
parent d06af526b2
commit fbe26d11cf
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -378,7 +378,7 @@ class Controller:
:param load: Load the topology
"""
topo_data = load_topology(path)
topology = topo_data.pop("topology")
topo_data.pop("topology")
topo_data.pop("version")
topo_data.pop("revision")
topo_data.pop("type")

@ -440,7 +440,7 @@ class Project:
Create a link. By default the link is empty
"""
if link_id and link_id in self._links:
return self._links[link.id]
return self._links[link_id]
link = UDPLink(self, link_id=link_id)
self._links[link.id] = link
self.dump()

Loading…
Cancel
Save