* Fixed updater crash caused by missing updater image during a potential server outage
This commit is contained in:
LoafyLemon 2023-07-01 15:03:41 +01:00
parent 6f5425b97c
commit 5d9b311430

View File

@ -153,8 +153,11 @@ init python:
except:
path = os.path.join(config.basedir, "update", "generic.webp")
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)