X-Git-Url: https://git.ucc.asn.au/?p=uccdoor.git;a=blobdiff_plain;f=client-xmpp.py;h=0f52bf087be267a4a8a253beb5e9dca14529973f;hp=b9af4cb51fa2584b47418261db855fb656495823;hb=0bce98bf71fe9e221df2a7ae238d7322ff23fd09;hpb=2d49be818f187338c2419c41733a8c217193f833;ds=sidebyside diff --git a/client-xmpp.py b/client-xmpp.py index b9af4cb..0f52bf0 100755 --- a/client-xmpp.py +++ b/client-xmpp.py @@ -3,6 +3,7 @@ # David Adam # Released under an MIT-style license; see COPYING for details. +import syslog import dbus import gobject import xmpp @@ -43,7 +44,8 @@ class Door(object): try: new_state = self.remoteobj.get_status(dbus_interface='au.asn.ucc.DoorInterface') - except: + except Exception, e: + syslog.syslog(142, "get_status failed: %s" % e) pass self.state_changed(new_state)