Add the None default value for the project infos
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 15:07:01 +0000 (15:07 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Dec 2008 15:07:01 +0000 (15:07 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2110 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BProject.py

index f2c1e9a1f376f3ed9d618cf08d3ebd39d4be0827..e58f5818481bbbd6d91a2fb8d99bd613ce36db6a 100644 (file)
@@ -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