Author: dmeyer
Date: Tue Apr 24 19:49:07 2007
New Revision: 2657

Modified:
   trunk/beacon/src/server/hwmon/hal.py

Log:
handle dbus without hal

Modified: trunk/beacon/src/server/hwmon/hal.py
==============================================================================
--- trunk/beacon/src/server/hwmon/hal.py        (original)
+++ trunk/beacon/src/server/hwmon/hal.py        Tue Apr 24 19:49:07 2007
@@ -178,7 +178,13 @@
             return False
         kaa.notifier.OneShotTimer(_connect_to_hal).start(2)
         return False
-    obj = _bus.get_object('org.freedesktop.Hal', 
'/org/freedesktop/Hal/Manager')
+    try:
+        obj = _bus.get_object('org.freedesktop.Hal', 
'/org/freedesktop/Hal/Manager')
+    except Exception, e:
+        # unable to connect to hal
+        signals['failed'].emit('hal not found on dbus')
+        return False
+
     # DONT ASK! dbus sucks!
     kaa.notifier.Timer(_connect_to_hal_because_dbus_sucks, obj).start(0.01)
     return False

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to