diff --git a/media/trakt.py b/media/trakt.py index ddc2d7a..69fd1af 100644 --- a/media/trakt.py +++ b/media/trakt.py @@ -67,7 +67,8 @@ class Trakt: processed = [] - type_name = type_name.replace('{authenticate_user}', self._user_used_for_authentication(authenticate_user)) + if authenticate_user: + type_name = type_name.replace('{authenticate_user}', self._user_used_for_authentication(authenticate_user)) try: while True: