From c287b6df77c57ec3f51409675b21fa35f408f461 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 12 Feb 2018 08:15:21 -0800 Subject: [PATCH] Fix DepreciationWarning error for URIs with query string parameters --- plexpy/http_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/http_handler.py b/plexpy/http_handler.py index 0f62d285..e0bd9ccf 100644 --- a/plexpy/http_handler.py +++ b/plexpy/http_handler.py @@ -65,7 +65,7 @@ class HTTPHandler(object): Output: list """ - self.uri = uri + self.uri = uri.encode('utf-8') self.request_type = request_type.upper() self.output_format = output_format.lower() self.return_type = return_type