X-Git-Url: https://git.ucc.asn.au/?p=uccdoor.git;a=blobdiff_plain;f=client-xmpp.py;h=78ce6e33a85d60ddcf1723cd40fa477d98277a83;hp=b9af4cb51fa2584b47418261db855fb656495823;hb=1c5c2c9d2af9f0fba4616cac85e5beda7d3b3396;hpb=2d49be818f187338c2419c41733a8c217193f833 diff --git a/client-xmpp.py b/client-xmpp.py index b9af4cb..78ce6e3 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 as e: + syslog.syslog(142, "get_status failed: %s" % e) pass self.state_changed(new_state)