Skip to content

Commit

Permalink
More terminal debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv committed Sep 25, 2024
1 parent 6372009 commit c79a4c4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Lib/_pyrepl/simple_interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ def check() -> str:
_get_reader()
except _error as e:
import os # temporary debugging measure to understand the Address sanitizer environment failure
term = ""
if term := os.environ.get("TERM"):
term = f"TERM={term}"
return (str(e) or repr(e) or "unknown error") + f"; {term}" if term else ""
if term := os.environ.get("TERM", ""):
term = f"; TERM={term}"
return str(str(e) or repr(e) or "unknown error") + term
return ""


Expand Down

0 comments on commit c79a4c4

Please sign in to comment.