diff --git a/apiserver/plane/api/views/project.py b/apiserver/plane/api/views/project.py index 0134547c5..6a817c12a 100644 --- a/apiserver/plane/api/views/project.py +++ b/apiserver/plane/api/views/project.py @@ -178,6 +178,12 @@ class ProjectViewSet(BaseViewSet): {"name": "The project name is already taken"}, status=status.HTTP_410_GONE, ) + else: + capture_exception(e) + return Response( + {"error": "Something went wrong please try again later"}, + status=status.HTTP_410_GONE, + ) except Workspace.DoesNotExist as e: return Response( {"error": "Workspace does not exist"}, status=status.HTTP_404_NOT_FOUND diff --git a/apiserver/plane/db/models/project.py b/apiserver/plane/db/models/project.py index c584af907..8eaf4e70a 100644 --- a/apiserver/plane/db/models/project.py +++ b/apiserver/plane/db/models/project.py @@ -64,7 +64,7 @@ class Project(BaseModel): module_view = models.BooleanField(default=True) cycle_view = models.BooleanField(default=True) issue_views_view = models.BooleanField(default=True) - cover_image = models.URLField(blank=True, null=True) + cover_image = models.URLField(blank=True, null=True, max_length=800) def __str__(self): """Return name of the project"""