From 4ed0c79e9a1c6e5b5931d408b6ae26dd3eeeab44 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 19 Dec 2008 15:07:01 +0000 Subject: [PATCH] Add the None default value for the project infos git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2110 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BProject.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wizard/BProject.py b/wizard/BProject.py index f2c1e9a1..e58f5818 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -18,4 +18,6 @@ class BProject(object): self.infos[key] = value def info(self, key): - return self.infos[key] \ No newline at end of file + if key in self.infos.keys(): + return self.infos[key] + return None \ No newline at end of file -- 2.25.1