[scrobbles] Fix scrobble having no user in tests

This commit is contained in:
2024-04-19 10:31:33 -04:00
parent b470e7acea
commit 37da74708c

View File

@ -560,7 +560,7 @@ class Scrobble(TimeStampedModel):
if not self.timezone:
timezone = settings.TIME_ZONE
if self.user.profile:
if self.user and self.user.profile:
timezone = self.user.profile.timezone
self.timzeone = timezone