Skip to content

Commit

Permalink
fix: invalid error is not tracked
Browse files Browse the repository at this point in the history
  • Loading branch information
smotornyuk committed Nov 10, 2024
1 parent 6c04561 commit b3bd894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion check_link/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def check(self, link: Link) -> Link:
# link.state_from_code(e.status, e.message, e.headers or {})
except (asyncio.TimeoutError, httpx.TimeoutException):
link.state_from_exception(TimeoutError("Timeout reached"))
except (ssl.SSLError, httpx.RequestError) as e:
except (ssl.SSLError, httpx.RequestError, httpx.InvalidURL) as e:
link.state_from_exception(e)
except Exception as e:
log.error("Unhandled request exception for link %s: %s", link, e)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "check_link"
version = "0.0.10.post1"
version = "0.0.11"
description = "Check if URL is available"
classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10",]
keywords = [ "URL", "validator", "HTTP",]
Expand Down

0 comments on commit b3bd894

Please sign in to comment.