mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 12:32:20 +01:00
Marietje in header and fix load times for upload page
This commit is contained in:
@ -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={
|
||||
|
||||
Reference in New Issue
Block a user