diff --git a/server.py b/server.py index e47476e..31eb42a 100644 --- a/server.py +++ b/server.py @@ -88,6 +88,8 @@ latestVersion = None updateAvailable = False def compare_versions(currentVersion, latestVersion): + if not latestVersion or not currentVersion: + return False (currentDate, currentCommit) = tuple(currentVersion.split('-')) (latestDate, latestCommit) = tuple(latestVersion.split('-')) currentDate = currentDate.split('.')