Marietje in header and fix load times for upload page

This commit is contained in:
Lars van Rhijn
2024-02-21 15:40:41 +01:00
committed by Kees van Kempen
parent 2dd4dd3381
commit 4768271aee
6 changed files with 186 additions and 132 deletions

View File

@ -86,7 +86,7 @@ class SongUploadAPIView(APIView):
song = upload_file(file, artist, title, request.user)
upload_counter.inc()
return Response(status=200, data=self.serializer_class(song).data)
except UploadException:
except (UploadException, ConnectionRefusedError):
return Response(
status=500,
data={