Add support for check for the latest released version of Mayan.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-05-26 17:37:23 -04:00
parent 4ffc6fc94f
commit 579595fe7f
7 changed files with 69 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
from __future__ import unicode_literals
class BaseCommonException(Exception):
"""
Base exception for the common app
"""
pass
class NotLatestVersion(BaseCommonException):
"""
The installed version is not the latest available version
"""
def __init__(self, upstream_version):
self.upstream_version = upstream_version