Skip to content

Commit

Permalink
[UPD] linkchecker intranet objects view
Browse files Browse the repository at this point in the history
  • Loading branch information
albertduran committed Feb 18, 2025
1 parent 3c97941 commit 98d32bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/genweb6/core/browser/helpers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,8 @@ def process_links(self, session, url):
res = session.get(link_url)
if res.status_code >= 400 and res.status_code != 999:
print(f"Enllaç trencat: {link_url} --(a)--> {url}")
self.bad.append(f"<p>En la pàgina web <a href='{url}' target='_blank'>{url}</a> hi ha un enllaç trencat: <a href='{link_url}' target='_blank'>{link_url}</a></p>")
self.bad.append(f"<p>En la pàgina web <a href='{url}' target='_blank'>{url}</a> hi ha un enllaç trencat cap a: <a href='{link_url}' target='_blank'>{link_url}</a>
amb codi d'error: {res.status_code}</p>")
# else:
# self.good.append(f"Funciona bé: {link_url} --(a)--> {url}")
except requests.RequestException:
Expand Down

0 comments on commit 98d32bc

Please sign in to comment.