diff --git a/weni/internal/msgs/views.py b/weni/internal/msgs/views.py index 555f08c52..04f372e89 100644 --- a/weni/internal/msgs/views.py +++ b/weni/internal/msgs/views.py @@ -73,6 +73,7 @@ def list(self, request): kwargs=kwargs, ) except Exception as e: + # Remove the lock if an error occurs redis_client.delete(f"template-messages-lock:{org.id}") return Response(data=str(e), status=500)