Skip to content

Commit

Permalink
Merge pull request #102 from enesonus/OVTF-196-dev
Browse files Browse the repository at this point in the history
OVTF-196-dev: Bug Fix 2
  • Loading branch information
bilalbdertli authored Dec 5, 2023
2 parents b662ea4 + 820fc17 commit 2fb7038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/songs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2fb7038

Please sign in to comment.