The Error Handler checks if the error is the CommandOnCooldown error. If it isnt, the error gets ignored. Add another else statement:
@bot.event
async def on_command_error(ctx, error):
if isinstance(error, commands.CommandOnCooldown):
if error.retry_after>3600:
....
else:
....
else:
Stuff the bot should do on a different error come here
CLICK HERE to find out more related problems solutions.