mirror of
https://github.com/GNS3/gns3-server
synced 2025-06-10 01:58:51 +00:00
Fix AttributeError: Cannot set attribute '%s'. Fixes #1646
This commit is contained in:
parent
7c33d3510a
commit
5d4de9d0ba
@ -96,7 +96,7 @@ class Node:
|
|||||||
try:
|
try:
|
||||||
setattr(self, prop, kwargs[prop])
|
setattr(self, prop, kwargs[prop])
|
||||||
except AttributeError as e:
|
except AttributeError as e:
|
||||||
log.critical("Cannot set attribute '%s'".format(prop))
|
log.critical("Cannot set attribute '{}'".format(prop))
|
||||||
raise e
|
raise e
|
||||||
else:
|
else:
|
||||||
if prop not in self.CONTROLLER_ONLY_PROPERTIES and kwargs[prop] is not None and kwargs[prop] != "":
|
if prop not in self.CONTROLLER_ONLY_PROPERTIES and kwargs[prop] is not None and kwargs[prop] != "":
|
||||||
|
Loading…
Reference in New Issue
Block a user