From 05533bf5e2511cba9175c370f4098dc9240e4336 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 5 Jan 2023 01:36:53 +0100 Subject: [PATCH] Fix sintassi xpath. --- loaih/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loaih/build.py b/loaih/build.py index 39ba440..b42acd3 100644 --- a/loaih/build.py +++ b/loaih/build.py @@ -126,7 +126,7 @@ class Build(loaih.RemoteBuild): path = str.join('/', path_arr) print(f"DEBUG - Name: {name}, URL: {path}") matching = etree.HTML(urllib.request.urlopen(path).read()).xpath( - f"//a[contains(@href, '{name}')/@href" + f"//a[contains(@href, '{name}')]/@href" ) if len(matching) > 0: