From caf3d5737482f5837410514a8bc3f10c4cc32fdc Mon Sep 17 00:00:00 2001 From: brostosjoined <67740566+brostosjoined@users.noreply.github.com> Date: Tue, 27 May 2025 00:24:55 +0000 Subject: [PATCH] [ci] auto-format --- plugins/utilities/update_notifier.py | 37 +++++++++++++++------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/plugins/utilities/update_notifier.py b/plugins/utilities/update_notifier.py index 7b99032..c5e9e39 100644 --- a/plugins/utilities/update_notifier.py +++ b/plugins/utilities/update_notifier.py @@ -22,49 +22,50 @@ def threaded(func): return wrapper + def play_sound(sound): with bs.get_foreground_host_activity().context: bs.getsound(sound).play() - + + @threaded def fetch_update(): url = 'https://ballistica.net/downloads' - try: + try: response = urllib.request.urlopen(url) web_content = response.read().decode('utf-8') except: return - + match = re.search(r'