Skip to content

Commit

Permalink
catch valueerror, which is thrown on an invalid url input
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrude committed May 24, 2023
1 parent 58117db commit 4cdd763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oobabot/oobabot.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _prepare_connections(self):
try:
client.test_connection()
fancy_logger.get().info("Connected to %s!", client.service_name)
except http_client.OobaHttpClientError as err:
except (ValueError, http_client.OobaHttpClientError) as err:
fancy_logger.get().error(
"Could not connect to %s server: [%s]",
client.service_name,
Expand Down

0 comments on commit 4cdd763

Please sign in to comment.