forked from SilverStudioGames/WTS
Bug fix
* Fixed updater crash caused by missing updater image during a potential server outage
This commit is contained in:
parent
6f5425b97c
commit
5d9b311430
@ -153,8 +153,11 @@ init python:
|
|||||||
except:
|
except:
|
||||||
path = os.path.join(config.basedir, "update", "generic.webp")
|
path = os.path.join(config.basedir, "update", "generic.webp")
|
||||||
|
|
||||||
with open(path, "rb") as f:
|
if os.path.isfile(path):
|
||||||
data = f.read()
|
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)
|
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user