mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 12:47:47 +00:00
[tests] initialize _initialized (#4662)
This commit initializes _initialized of Node before doing initialization. Otherwise, we will have an AttributeError in desctructor when initialization fails.
This commit is contained in:
@@ -48,6 +48,7 @@ class Node:
|
||||
self.verbose = int(float(os.getenv('VERBOSE', 0)))
|
||||
self.node_type = os.getenv('NODE_TYPE', 'sim')
|
||||
self.env_version = os.getenv('THREAD_VERSION', '1.1')
|
||||
self._initialized = False
|
||||
|
||||
if version is not None:
|
||||
self.version = version
|
||||
|
||||
Reference in New Issue
Block a user