From 5d9b311430d9705ecad044882545aef44f0bc47a Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Sat, 1 Jul 2023 15:03:41 +0100 Subject: [PATCH] Bug fix * Fixed updater crash caused by missing updater image during a potential server outage --- game/scripts/utility/updater.rpy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/game/scripts/utility/updater.rpy b/game/scripts/utility/updater.rpy index 51e1a331..924f11d4 100644 --- a/game/scripts/utility/updater.rpy +++ b/game/scripts/utility/updater.rpy @@ -153,8 +153,11 @@ init python: except: path = os.path.join(config.basedir, "update", "generic.webp") - with open(path, "rb") as f: - data = f.read() + if os.path.isfile(path): + with open(path, "rb") as f: + data = f.read() + else: + data = Null() return Fixed(im.Data(data, path), Text(UPDATE_VER, size=96, align=(0.5, 0.8), color="#000000", outlines=[( 1, "#ffffff", 0, 0 )]), fit_first=True)