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

View File

@ -12,7 +12,7 @@ from .config import atomic_save
from .constants import cache_dir, get_boss, kitty_exe, version
from .fast_data_types import add_timer, monitor_pid
from .notify import notify
from .utils import open_url
from .utils import log_error, open_url
CHANGELOG_URL = 'https://sw.kovidgoyal.net/kitty/changelog.html'
RELEASED_VERSION_URL = 'https://sw.kovidgoyal.net/kitty/current-version.txt'
@ -102,9 +102,8 @@ def update_check(timer_id=None):
kitty_exe(), '+runpy',
'from kitty.update_check import *; import time, random; time.sleep(random.randint(1000, 4000) / 1000); print(get_released_version())'
], stdout=subprocess.PIPE)
except EnvironmentError:
import traceback
traceback.print_exc()
except EnvironmentError as e:
log_error('Failed to run kitty for update check, with error: {}'.format(e))
return False
monitor_pid(p.pid)
get_boss().set_update_check_process(p)