From 3cf8c4f8a840fc89f14292ebc3d2d9a35861d888 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 11 Oct 2019 20:11:13 -0700 Subject: [PATCH] Fix rare case when HTTP_ROOT is None when retrieving URL --- plexpy/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/helpers.py b/plexpy/helpers.py index ff67c365..e057b0f8 100644 --- a/plexpy/helpers.py +++ b/plexpy/helpers.py @@ -1130,7 +1130,7 @@ def get_plexpy_url(hostname=None): else: port = '' - if plexpy.HTTP_ROOT.strip('/'): + if plexpy.HTTP_ROOT is not None and plexpy.HTTP_ROOT.strip('/'): root = '/' + plexpy.HTTP_ROOT.strip('/') else: root = ''