diff --git a/.idea/college-bot-2.0.iml b/.idea/college-bot-2.0.iml index c3016ba..2c80e12 100644 --- a/.idea/college-bot-2.0.iml +++ b/.idea/college-bot-2.0.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 2f3bd18..32c9382 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index eb3d201..9a2034e 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -70,7 +70,7 @@ class Ollama(commands.Cog): async with session.get(url + "/api/tags") as resp: self.log.debug("%r is online.", resp.url.host) return resp.ok - except aiohttp.ClientConnectionError: + except (aiohttp.ClientConnectionError, asyncio.TimeoutError): self.log.warning("%r is offline.", url) return False