From 5faeafedd53b4a9f83485d341fa9aed028e199ab Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sat, 1 Oct 2022 19:24:57 +0000 Subject: [PATCH] Fix API 400 response code --- plexpy/api2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/api2.py b/plexpy/api2.py index add091b1..4d9efbdc 100644 --- a/plexpy/api2.py +++ b/plexpy/api2.py @@ -824,7 +824,7 @@ General optional parameters: if self._api_result_type == 'success' and not self._api_response_code: self._api_response_code = 200 - elif self._api_result_type == 'error' and not self._api_response_code: + elif self._api_result_type == 'error' and self._api_response_code != 500: self._api_response_code = 400 if not self._api_response_code: