attempt better error handling for rcon command
@@ -420,7 +420,7 @@ class Minecraft(commands.Cog):
s = db_guild['mcserver'].split(':')[0]+f':{port}'
print(f'|{s}|')
self.d.rcon_connection_cache[key] = (rcon.Client(s, auth_msg.content, 2.5, loop=self.bot.loop), arrow.utcnow())
- except aiomcrcon.Errors.ConnectionFailedError:
+ except Exception:
await self.bot.send(ctx, 'Connection to the server failed')
self.d.rcon_connection_cache.pop(key, None)
return
