From 21ce020b8ff799edf9e8c676cfc930a07c6102fd Mon Sep 17 00:00:00 2001 From: xfangfang <2553041586@qq.com> Date: Wed, 15 Sep 2021 01:41:35 +0800 Subject: [PATCH] Release v0.64 Fix update error --- macast/.version | 2 +- macast/gui.py | 2 ++ macast/macast.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/macast/.version b/macast/.version index 21b86bac2..8be42893f 100644 --- a/macast/.version +++ b/macast/.version @@ -1 +1 @@ -0.63 +0.64 diff --git a/macast/gui.py b/macast/gui.py index a4c074256..53cf13d42 100644 --- a/macast/gui.py +++ b/macast/gui.py @@ -273,6 +273,8 @@ def dialog(self, content, callback=None, cancel="Cancel", ok="Ok"): callback() except Exception as e: self.notification("Error", "Cannot access System Events") + logger.error(e) + callback() else: self.notification("Macast", content) if callback: diff --git a/macast/macast.py b/macast/macast.py index 270b93313..92b3f466e 100644 --- a/macast/macast.py +++ b/macast/macast.py @@ -476,7 +476,7 @@ def check_update(self, verbose=True): if float(Setting.get_version()) < float(online_version): self.dialog(_("Macast New Update {}").format(res['tag_name']), - lambda _: self.open_browser(release_url), + lambda: self.open_browser(release_url), ok="Update") else: if verbose: