Skip to content

Commit

Permalink
#3690 uinput packages can be broken in new ways
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 21, 2022
1 parent f599a85 commit 2c192de
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions xpra/server/server_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,16 +406,16 @@ def has_uinput():
try:
import uinput
assert uinput
except NameError as e:
except ImportError:
log = get_util_logger()
log("has_uinput()", exc_info=True)
log.warn("Warning: the system python uinput module looks broken:")
log.warn(" %s", e)
log.info("no uinput module (not usually needed)")
return False
except ImportError:
except Exception as e:
log = get_util_logger()
log("has_uinput()", exc_info=True)
log.info("no uinput module (not usually needed)")
log.warn("Warning: the system python uinput module looks broken:")
log.warn(" %s", e)
return False
try:
uinput.fdopen() #@UndefinedVariable
Expand Down

0 comments on commit 2c192de

Please sign in to comment.