Skip to content
Snippets Groups Projects
Verified Commit d23d69e1 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed an issue with excluded artists

parent 9d7cd006
Branches
Tags
No related merge requests found
......@@ -117,10 +117,10 @@ class PlaylistSerializer(serializers.ModelSerializer):
except AttributeError:
return []
excluded_artists = []
try:
user = self.context["request"].user
except (KeyError, AttributeError):
excluded_artists = []
user = None
if user and user.is_authenticated:
excluded_artists = list(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment