fix: project url max length (#471)
This commit is contained in:
parent
f7dbc5e9c0
commit
4dc76eac19
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue