Added update exceptions to Python3

This commit is contained in:
Manuel Cortez 2019-01-07 15:35:28 -06:00
parent cfadede201
commit febf9f2c3e

View File

@ -1,6 +1,7 @@
from logging import getLogger
logger = getLogger('update')
import sys
import contextlib
import io
import os
@ -74,6 +75,9 @@ def find_version_data(update_type, current_version, available_update):
return (False, False, False)
available_description = available_update["message"]
# ToDo: simplify this so it can be reused in other projects.
if sys.version[0] == "3":
update_url = "https://code.manuelcortez.net/manuelcortez/socializer/-/jobs/artifacts/master/raw/socializer.zip?job=alpha_python3"
else:
update_url = "https://code.manuelcortez.net/manuelcortez/socializer/-/jobs/artifacts/master/raw/socializer.zip?job=alpha"
return (available_version, available_description, update_url)