Skip to content

Commit 7d2863f

Browse files
chkp-ronizclaude
andcommitted
style: use if/else block for install_hint readability
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d175aa0 commit 7d2863f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/notebooklm/cli/session.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,10 @@ def login(storage, browser):
192192
try:
193193
from playwright.sync_api import sync_playwright
194194
except ImportError:
195-
install_hint = (
196-
" pip install notebooklm[browser]"
197-
if browser == "msedge"
198-
else " pip install notebooklm[browser]\n playwright install chromium"
199-
)
195+
if browser == "msedge":
196+
install_hint = " pip install notebooklm[browser]"
197+
else:
198+
install_hint = " pip install notebooklm[browser]\n playwright install chromium"
200199
console.print(f"[red]Playwright not installed. Run:[/red]\n{install_hint}")
201200
raise SystemExit(1) from None
202201

0 commit comments

Comments
 (0)