Skip to content

Commit 240ddc7

Browse files
committed
wip
1 parent e5fe771 commit 240ddc7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/together/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@
4141
border_style="cyan",
4242
)
4343
)
44-
except ImportError:
45-
# Fallback if rich is not available
46-
print(_ANNOUNCEMENT_MESSAGE, file=sys.stderr)
44+
except Exception:
45+
# Fallback for any error (ImportError, OSError in daemons, rich errors, etc.)
46+
# Banner display should never break module imports
47+
try:
48+
print(_ANNOUNCEMENT_MESSAGE, file=sys.stderr)
49+
except Exception:
50+
pass # Silently ignore if even stderr is unavailable
4751

4852
# =============================================================================
4953

0 commit comments

Comments
 (0)