mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-15 11:05:16 +00:00
Fixed app crash
This commit is contained in:
parent
3694be3f8e
commit
c04eb7a31c
|
@ -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('.')
|
||||||
|
|
Loading…
Reference in a new issue