From da47720ce62d1be22034969717e1ab4cca7d9d84 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: