From 9fc48ac8bd1c26a70810a9cc59b4c0b7e6f903ec Mon Sep 17 00:00:00 2001 From: Taka Date: Sat, 13 Apr 2019 03:45:00 +0000 Subject: [PATCH] Fixed a possible crash at startup. --- vasl_templates/webapp/vassal.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vasl_templates/webapp/vassal.py b/vasl_templates/webapp/vassal.py index 09ef9d6..3e13a1b 100644 --- a/vasl_templates/webapp/vassal.py +++ b/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 {}." \ - "

Things might work, but they might not...".format( version ) - ) + if msg_store: + msg_store.warning( + "This program has not been tested with VASSAL {}." \ + "

Things might work, but they might not...".format( version ) + ) # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -