WebHost: make LttP sprites optional

This commit is contained in:
Fabian Dill 2021-09-07 00:42:02 +02:00
parent 1ee62912fd
commit 105a2d4e13
1 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,11 @@ if __name__ == "__main__":
multiprocessing.freeze_support() multiprocessing.freeze_support()
multiprocessing.set_start_method('spawn') multiprocessing.set_start_method('spawn')
logging.basicConfig(format='[%(asctime)s] %(message)s', level=logging.INFO) logging.basicConfig(format='[%(asctime)s] %(message)s', level=logging.INFO)
update_sprites_lttp() try:
update_sprites_lttp()
except Exception as e:
logging.exception(e)
logging.warning("Could not update LttP sprites.")
app = get_app() app = get_app()
create_options_files() create_options_files()
if app.config["SELFLAUNCH"]: if app.config["SELFLAUNCH"]: