Skip to content

Commit

Permalink
fix(Basic): Return None not Exception if no proxy configured
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed Apr 16, 2024
1 parent 09e80fe commit a850a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devine/core/proxies/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_proxy(self, query: str) -> Optional[str]:

servers: Optional[Union[str, list[str]]] = self.countries.get(country_code)
if not servers:
raise ValueError(f"There's no proxies configured for \"{country_code}\"...")
return None

if isinstance(servers, str):
proxy = servers
Expand Down

0 comments on commit a850a35

Please sign in to comment.