From 820fc17164d9cecefb942aded0a89fafe9e13084 Mon Sep 17 00:00:00 2001 From: Bilal Dertli <127341202+bilalbdertli@users.noreply.github.com> Date: Tue, 5 Dec 2023 19:20:46 +0300 Subject: [PATCH] OVTF-196-dev: Bug Fix 2 --- apps/songs/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/songs/views.py b/apps/songs/views.py index 856083b..517c284 100644 --- a/apps/songs/views.py +++ b/apps/songs/views.py @@ -608,6 +608,6 @@ def get_random_genres(request, userid): except User.DoesNotExist: return JsonResponse({'error': 'User does not exist'}, status=404) except ValueError: - return JsonResponse({'error': 'Invalid number of songs'}, status=400) + return JsonResponse({'error': 'Invalid number of genres'}, status=400) except Exception as e: return JsonResponse({'error': str(e)}, status=500) \ No newline at end of file