[conduit/gsoc09_alexandre: 19/24] Fixed None values in SyncSetGconf



commit c5f39d446c16464b4bc5ca95fd8094d6769ebdef
Author: Alexandre Rosenfeld <airmind gmail com>
Date:   Sat Aug 1 02:07:53 2009 -0300

    Fixed None values in SyncSetGconf

 conduit/SyncSetGConf.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/conduit/SyncSetGConf.py b/conduit/SyncSetGConf.py
index 108d5cb..2aea805 100644
--- a/conduit/SyncSetGConf.py
+++ b/conduit/SyncSetGConf.py
@@ -20,6 +20,8 @@ class Error(Exception):
 class SyncSetGConf(object):
     def get_value(self, value):
         #value = client.get(path)
+        if value is None:
+            return None
         if value.type == gconf.VALUE_PAIR:
             log.critical(value.to_string)
         return {gconf.VALUE_BOOL: value.get_bool, 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]