serena.util.exception
Source code: serena/util/exception.py
-
is_headless_environment()[source]
Detect if we’re running in a headless environment where GUI operations would fail.
Returns True if:
- No DISPLAY variable on Linux/Unix
- Running in SSH session
- Running in WSL without X server
- Running in Docker container
- Return type:
bool
-
show_fatal_exception_safe(e)[source]
Shows the given exception in the GUI log viewer on the main thread and ensures that the exception is logged or at
least printed to stderr.
- Parameters:
e (Exception)
- Return type:
None