Commit 2ad7d083 authored by Joshua Tauberer's avatar Joshua Tauberer

add exception handling for what_version_is_this, fixes #659

parent 5045e206
......@@ -12,6 +12,7 @@ Control Panel:
* The SSL (now "TLS") certificates page now supports provisioning free SSL certificates from Let's Encrypt.
* Report free memory usage.
* Fix a crash when the git directory is not checked out to a tag.
System:
......
......@@ -751,8 +751,13 @@ def check_miab_version(env, output):
if config.get("privacy", True):
output.print_warning("Mail-in-a-Box version check disabled by privacy setting.")
else:
this_ver = what_version_is_this(env)
try:
this_ver = what_version_is_this(env)
except:
this_ver = "Unknown"
latest_ver = get_latest_miab_version()
if this_ver == latest_ver:
output.print_ok("Mail-in-a-Box is up to date. You are running version %s." % this_ver)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment