1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-05-29 12:18:56 +00:00

Merge branch '2.1' into 2.2

This commit is contained in:
grossmj 2019-09-09 15:02:06 +07:00
commit 7cd9bb6ca6

View File

@ -100,7 +100,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] != "":