Fixed app crash

This commit is contained in:
RemixDev 2020-09-11 00:50:23 +02:00
parent 3694be3f8e
commit c04eb7a31c

View file

@ -88,6 +88,8 @@ latestVersion = None
updateAvailable = False updateAvailable = False
def compare_versions(currentVersion, latestVersion): def compare_versions(currentVersion, latestVersion):
if not latestVersion or not currentVersion:
return False
(currentDate, currentCommit) = tuple(currentVersion.split('-')) (currentDate, currentCommit) = tuple(currentVersion.split('-'))
(latestDate, latestCommit) = tuple(latestVersion.split('-')) (latestDate, latestCommit) = tuple(latestVersion.split('-'))
currentDate = currentDate.split('.') currentDate = currentDate.split('.')