diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-30 17:12:04 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-30 17:12:04 +0800 |
commit | 94e0692d566e21ce5a59ca94725b4c9d2f87800f (patch) | |
tree | 5622206d54f379cc79a748ebf3390e425d04b3eb /gconf | |
parent | 3d02c0e3cc32030ec93177ee6a8c39ade3554c31 (diff) | |
download | ibus-94e0692d566e21ce5a59ca94725b4c9d2f87800f.tar.gz ibus-94e0692d566e21ce5a59ca94725b4c9d2f87800f.tar.xz ibus-94e0692d566e21ce5a59ca94725b4c9d2f87800f.zip |
Fix error when get_value from a unexist key.
Diffstat (limited to 'gconf')
-rw-r--r-- | gconf/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gconf/config.py b/gconf/config.py index 1cdb155..9e8298b 100644 --- a/gconf/config.py +++ b/gconf/config.py @@ -68,6 +68,8 @@ class Config(ibus.Object): self.__client = None def __to_py_value(self, value): + if value == None: + return value if value.type == gconf.VALUE_STRING: return value.get_string() if value.type == gconf.VALUE_INT: |