secure sprite table fill with threadlock

This commit is contained in:
Fabian Dill
2020-08-22 02:56:33 +02:00
parent 99c2185410
commit 8e85e2892a
2 changed files with 16 additions and 14 deletions

View File

@@ -161,7 +161,7 @@ def main(args=None, callback = ERmain):
if path:
try:
settings = settings_cache[path] if settings_cache[path] else roll_settings(weights_cache[path])
if settings.sprite is not None and not os.path.isfile(settings.sprite) and not get_sprite_from_name(
if settings.sprite and not os.path.isfile(settings.sprite) and not get_sprite_from_name(
settings.sprite):
logging.warning(
f"Warning: The chosen sprite, \"{settings.sprite}\", for yaml \"{path}\", does not exist.")