Gestito errore di verifica delle build con cartella quando non trovate.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
64effab3d7
commit
db01651251
@ -159,6 +159,7 @@ class Build(loaih.RemoteBuild):
|
||||
path = str.join('/', path_arr)
|
||||
print(f"DEBUG - Name: {name}, URL: {path}")
|
||||
matching = []
|
||||
try:
|
||||
with urllib.request.urlopen(path) as url:
|
||||
matching = etree.HTML(url.read()).xpath(
|
||||
f"//a[contains(@href, '{name}')]/@href"
|
||||
@ -168,6 +169,10 @@ class Build(loaih.RemoteBuild):
|
||||
# Already built.
|
||||
self.built[arch] = True
|
||||
|
||||
except urllib.error.HTTPError:
|
||||
# The URL specified do not exist. So it is to build.
|
||||
pass
|
||||
|
||||
else:
|
||||
# Repo is local
|
||||
print(f"Searching for {self.appimagefilename[arch]}")
|
||||
|
Reference in New Issue
Block a user