From d5d1e6c11e3cb210fc87220995952b98da961c06 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 2 Feb 2019 15:41:55 +0530 Subject: [PATCH] Ignore broken pipe errors when readon data from update check worker --- kitty/boss.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kitty/boss.py b/kitty/boss.py index 3137034c2..6f621e52a 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -990,7 +990,14 @@ class Boss: if update_check_process is not None and pid == update_check_process.pid: self.update_check_process = None from .update_check import process_current_release - process_current_release(update_check_process.stdout.read().decode('utf-8')) + try: + raw = update_check_process.stdout.read().decode('utf-8') + except BrokenPipeError: + pass + except Exception as e: + log_error('Failed to read data from update check process, with error: {}'.format(e)) + else: + process_current_release(raw) def notification_activated(self, identifier): if identifier == 'new-version':