Fixed an error caused by the VASL .vmod not loading properly.

master
Pacman Ghost 2 years ago
parent 5d425f2ded
commit 7a0c4044e4
  1. 5
      vasl_templates/webapp/vasl_mod.py

@ -178,8 +178,9 @@ class VaslMod:
# clean up
# NOTE: We keep our module and extension ZIP files open for the duration (so we can
# read images out of them on demand), so we need to make sure we close them here.
for f in self._files:
f[0].close()
if hasattr( self, "_files" ):
for f in self._files:
f[0].close()
def get_piece_image( self, gpid, side, index ):
"""Get the image for the specified piece."""

Loading…
Cancel
Save