From c04eb7a31c219717e80b369e3e93fc06faff5545 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Fri, 11 Sep 2020 00:50:23 +0200 Subject: [PATCH] Fixed app crash --- server.py | 2 ++ 1 file changed, 2 insertions(+) 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('.')