From d1616d9e61d8640aa94d41df4f6d488018b7357f Mon Sep 17 00:00:00 2001 From: James Date: Mon, 28 May 2018 00:38:53 +0100 Subject: [PATCH] only change type_name when authenticate user is supplied --- media/trakt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: