débug auto-update
This commit is contained in:
@@ -27,7 +27,11 @@ class auto_updater:
|
||||
ssl._create_default_https_context = ssl._create_unverified_context
|
||||
if self.dl_version != VERSION:
|
||||
print(f"Version différente trouvée {self.dl_version} téléchargement en cours => {self.temp_dir}update.exe")
|
||||
urllib.request.urlretrieve(url=f"https://gitea.prod.resk-u.ch/CLERC/AttribWinbiz/releases/download/{self.clean(self.dl_version)}/Clercattrib2Biz_setup.exe", filename=f"{self.temp_dir}update.exe")
|
||||
try:
|
||||
urllib.request.urlretrieve(url=f"https://gitea.prod.resk-u.ch/CLERC/AttribWinbiz/releases/download/{self.clean(self.dl_version)}/Clercattrib2Biz_setup.exe", filename=f"{self.temp_dir}update.exe")
|
||||
except:
|
||||
print("ERREUR de téléchargement mise à jours")
|
||||
return "ERROR"
|
||||
ret = True
|
||||
return ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user