From 81791030e80f68f39cd7a0e52f72744ccb87011b Mon Sep 17 00:00:00 2001 From: Viktor Dragomiretskyy Date: Thu, 16 Jul 2020 23:49:39 +1200 Subject: [PATCH] Properly pass exception to logger --- dbus_service/dbus-service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbus_service/dbus-service b/dbus_service/dbus-service index dd8bc44..6a76f95 100755 --- a/dbus_service/dbus-service +++ b/dbus_service/dbus-service @@ -101,7 +101,7 @@ class Device(dbus.service.Object): usrid, subtype, hsh = sensor.identify(update_cb) self.VerifyStatus('verify-match', True) except Exception as e: - logging.exception('Oops', e) + logging.exception(e) self.VerifyStatus('verify-no-match', True) thread = Thread(target=run) @@ -133,7 +133,7 @@ class Device(dbus.service.Object): sensor.enroll(uid2identity(uid), 0xf5, update_cb) # TODO parse the finger name self.EnrollStatus('enroll-completed', True) except Exception as e: - logging.exception('Oops', e) + logging.exception(e) self.EnrollStatus('enroll-failed', True) thread = Thread(target=run) @@ -236,6 +236,6 @@ if __name__ == '__main__': try: loop.run() except Exception as e: - logging.exception('Oops', e) + logging.exception(e) raise e