Fixed a possible crash at startup.

master
Pacman Ghost 5 years ago
parent 02c27ab38b
commit 9fc48ac8bd
  1. 9
      vasl_templates/webapp/vassal.py

@ -350,10 +350,11 @@ class VassalShim:
return
version = VassalShim().get_version()
if version not in SUPPORTED_VASSAL_VERSIONS:
msg_store.warning(
"This program has not been tested with VASSAL {}." \
"<p>Things might work, but they might not...".format( version )
)
if msg_store:
msg_store.warning(
"This program has not been tested with VASSAL {}." \
"<p>Things might work, but they might not...".format( version )
)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Loading…
Cancel
Save