Add exception handling to latest version check
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -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)
|
||||
==================
|
||||
|
||||
@@ -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.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user