INNER CODE UNIT · Python

handle_bindings_clash

Kohei-Wada/taskdog · packages/taskdog-ui/src/taskdog/tui/app.py:464

    def handle_bindings_clash(self, clashed_bindings: set[Binding], node: Any) -> None:
        """Warn when custom keybindings collide with existing ones."""
        keys = sorted({b.key for b in clashed_bindings})
        self.notify(
            f"Keybinding clash on: {', '.join(keys)}. Check cli.toml [keybindings].",
            severity="warning",
        )

    def _handle_api_error(
        self, error: ServerConnectionError | AuthenticationError | ServerError
    ) -> None:
        """Handle API errors from TaskUIManager.

        Args:
            error: API error (connection, auth, or server error)
        """
        if isinstance(error, ServerConnectionError):
            msg = f"Server connection failed: {error.original_error.__class__.__name__}. Press 'r' to retry."

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…