Skip to content

Commit

Permalink
upd(base.py): Improve reliability and logging of dynamic branch check
Browse files Browse the repository at this point in the history
It is unusual if we have URL scheme and HTTP check fails, so better
if we log it.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
  • Loading branch information
nuclearcat committed Feb 24, 2025
1 parent 2c4ee61 commit abf0de0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def validate_url(url):
return False
try:
r = requests.head(url)
if r.status_code != 200:
return False
r.raise_for_status()
except Exception as e:
logging.error(f'Error accessing URL: {e}')
return False
Expand Down

0 comments on commit abf0de0

Please sign in to comment.