From 8a258bdb28d576479c398aec477996d4c7bf8f3c Mon Sep 17 00:00:00 2001 From: Yang Yang Date: Mon, 26 Oct 2020 19:07:05 +0800 Subject: [PATCH] fix dev_mode --- images/utils/launcher/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/utils/launcher/config/config.py b/images/utils/launcher/config/config.py index e9b83ac40..3a6c0594f 100644 --- a/images/utils/launcher/config/config.py +++ b/images/utils/launcher/config/config.py @@ -1161,4 +1161,4 @@ def dump_node_attr(node: str, attr: str) -> None: @property def dev_mode(self) -> bool: - return self.args.dev + return hasattr(self.args, "dev") and self.args.dev