From 8fccd843457710436c153c92767b52a4392e6670 Mon Sep 17 00:00:00 2001 From: Equidamoid Date: Mon, 8 Feb 2021 23:55:10 +0000 Subject: [PATCH] Log real exception when can't use Xorg API (#1066) * fix: log real exception when can't use Xorg API * chore: make linter happy --- lib/logitech_receiver/diversion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/logitech_receiver/diversion.py b/lib/logitech_receiver/diversion.py index f02675b4..aecb69ac 100644 --- a/lib/logitech_receiver/diversion.py +++ b/lib/logitech_receiver/diversion.py @@ -19,6 +19,7 @@ import os as _os import os.path as _path +import sys as _sys from logging import INFO as _INFO from logging import getLogger @@ -50,7 +51,7 @@ try: disp_prog = Display() x11 = True except Exception: - _log.warn('X11 not available - rules will not be activated') + _log.warn('X11 not available - rules will not be activated', exc_info=_sys.exc_info()) XK_KEYS = {} x11 = False