Skip to content

Commit

Permalink
handle missing stderr more gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Mar 7, 2024
1 parent 3cf9ac8 commit f700a63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fs/bin/xpra
Expand Up @@ -5,8 +5,11 @@ import sys
try:
import xpra
except ImportError as e:
sys.stderr.write("Error: xpra is not installed or you are using the wrong python interpreter\n")
sys.stderr.write(" Python %s: %s\n" % (".".join(str(x) for x in sys.version_info[:3]), e))
stderr = sys.stderr
if stderr:
stderr.write("Error: xpra is not installed or you are using the wrong python interpreter\n")
stderr.write(" Python %s: %s\n" % (".".join(str(x) for x in sys.version_info[:3]), e))
stderr.flush()
sys.exit(1)

from xpra.platform import init, set_default_name
Expand Down

0 comments on commit f700a63

Please sign in to comment.