Fix a potential crash

This commit is contained in:
Julien Duponchelle committed 2017-02-06 11:07:35 +01:00
1 parent d06af526b2
commit fbe26d11cf
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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")
+1 -1
View File
@@ -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()