add exception handling for what_version_is_this, fixes #659
This commit is contained in:
parent
5045e206c2
commit
2ad7d0830e
2 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue