Skip to content

Commit 40dbf7f

Browse files
committed
Use log_error instead of print
1 parent 42a7023 commit 40dbf7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kitty/window.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
from .types import ScreenGeometry, WindowGeometry
4040
from .typing import BossType, ChildType, EdgeLiteral, TabType, TypedDict
4141
from .utils import (
42-
color_as_int, get_primary_selection, load_shaders, open_cmd, open_url,
43-
parse_color_set, read_shell_environment, sanitize_title,
42+
color_as_int, get_primary_selection, load_shaders, log_error, open_cmd,
43+
open_url, parse_color_set, read_shell_environment, sanitize_title,
4444
set_primary_selection
4545
)
4646

@@ -501,7 +501,7 @@ def send_text(self, *args: str) -> bool:
501501
def write_to_child(self, data: Union[str, bytes]) -> None:
502502
if data:
503503
if get_boss().child_monitor.needs_write(self.id, data) is not True:
504-
print('Failed to write to child %d as it does not exist' % self.id, file=sys.stderr)
504+
log_error(f'Failed to write to child {self.id} as it does not exist')
505505

506506
def title_updated(self) -> None:
507507
update_window_title(self.os_window_id, self.tab_id, self.id, self.title)

0 commit comments

Comments
 (0)