Marietje in header and fix load times for upload page

This commit is contained in:
Lars van Rhijn
2023-10-04 20:00:18 +02:00
parent 12e47ce6c2
commit b2429f941b
5 changed files with 112 additions and 79 deletions

View File

@ -84,7 +84,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={