Retro Bulletin Board Systems on atproto. Web app and TUI. lazy mirror of alyraffauf/atbbs atbbs.xyz
forums python tui atproto bbs
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

tui/local_server: handle taken port

+11 -1
+8 -1
tui/local_server.py
··· 29 29 runner = web.AppRunner(app) 30 30 await runner.setup() 31 31 site = web.TCPSite(runner, "127.0.0.1", port) 32 - await site.start() 32 + try: 33 + await site.start() 34 + except OSError as e: 35 + await runner.cleanup() 36 + raise RuntimeError( 37 + f"Could not bind OAuth callback server on 127.0.0.1:{port} " 38 + f"({e}). Is another atbbs login in progress?" 39 + ) from e 33 40 34 41 try: 35 42 await event.wait()
+3
tui/screens/login.py
··· 119 119 120 120 try: 121 121 callback = await wait_for_callback(port=CALLBACK_PORT) 122 + except RuntimeError as e: 123 + self.notify(str(e), severity="error") 124 + return 122 125 except Exception: 123 126 self.notify("Failed to receive callback.", severity="error") 124 127 return