[Sugar-devel] [PATCH] avoid reporting missing DCON

James Cameron quozl at laptop.org
Wed Feb 18 18:09:47 EST 2015


The DCON is OLPC XO specific and the absence need not be reported.

Removes message:

	ERROR root: Cannot unfreeze the DCON

However, this doesn't fix an immediately preceeding message:

	ERROR dbus.proxies: Introspect error on
	org.freedesktop.ohm:/org/freedesktop/ohm/Keystore:
	dbus.exceptions.DBusException:
	org.freedesktop.DBus.Error.ServiceUnknown: The name
	org.freedesktop.ohm was not provided by any .service files

Any ideas how to fix that one?
---
 src/jarabe/model/screen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jarabe/model/screen.py b/src/jarabe/model/screen.py
index f70bda1..8c7d1c7 100644
--- a/src/jarabe/model/screen.py
+++ b/src/jarabe/model/screen.py
@@ -42,4 +42,4 @@ def set_dcon_freeze(frozen):
     try:
         _get_ohm().SetKey('display.dcon_freeze', frozen)
     except dbus.DBusException:
-        logging.error('Cannot unfreeze the DCON')
+        pass
-- 
1.8.3.2



More information about the Sugar-devel mailing list