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 Jan 8, 2023
1 parent 56d530e commit d9f8b7e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xpra/server/server_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,18 +471,18 @@ def has_uinput():
try:
import uinput
assert uinput
except NameError as e:
log = get_util_logger()
log("has_uinput()", exc_info=True)
log.warn("Warning: the system python uinput module looks broken:")
log.warn(" %s", e)
return False
except ImportError as e:
log = get_util_logger()
log("has_uinput()", exc_info=True)
log.info("cannot access python uinput module:")
log.info(" %s", e)
return False
except Exception as e:
log = get_util_logger()
log("has_uinput()", exc_info=True)
log.warn("Warning: the system python uinput module looks broken:")
log.warn(" %s", e)
return False
try:
uinput.fdopen() #@UndefinedVariable
except Exception as e:
Expand Down

0 comments on commit d9f8b7e

Please sign in to comment.