Skip to content

Commit

Permalink
Splitting one line in exceptions.py into two lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Crinibus committed Dec 29, 2023
1 parent 3088e45 commit a7db959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scraper/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ def __init__(self, url, *args: object) -> None:
self.url = url

def __str__(self) -> str:
return f"Missing schema in url '{self.url}'. Consider prefixing the url with one of following schemes: {', '.join(URL_SCHEMES)}"
url_schemes = ", ".join(URL_SCHEMES)
return f"Missing schema in url '{self.url}'. Consider prefixing the url with one of following schemes: {url_schemes}"

0 comments on commit a7db959

Please sign in to comment.