Ignore broken pipe errors when readon data from update check worker

This commit is contained in:
Kovid Goyal 2019-02-02 15:41:55 +05:30
parent 8e6780e761
commit d5d1e6c11e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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':