Add exception handling to latest version check

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-11-01 21:41:06 -04:00
parent f650a623b5
commit aa608c6094
2 changed files with 8 additions and 0 deletions

View File

@@ -41,6 +41,8 @@
- Rename all instances of the IMAP server from mailbox to
server for clarity.
- Add book link in the about menu.
- Add unknown exception handling when checking for the latest
version.
3.2.8 (2019-10-01)
==================

View File

@@ -28,6 +28,12 @@ class CheckVersionView(SimpleView):
'It is not possible to determine the latest version '
'available.'
)
except Exception as exception:
message = _(
'Unexpected error trying to determine the latest version '
'available. Make sure your installation has a connection to '
'the internet; %s'
) % exception
else:
message = _('Your version is up-to-date.')