From 68df0f07c89f2a676a55c499e95af1963b317990 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Thu, 21 Mar 2019 10:22:34 -0700 Subject: [PATCH] Return API result error when unauthenticaed --- plexpy/api2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/api2.py b/plexpy/api2.py index c541b84d..2c0eec30 100644 --- a/plexpy/api2.py +++ b/plexpy/api2.py @@ -700,7 +700,7 @@ General optional parameters: if ret is None: ret = result - if ret is not None or self._api_result_type == 'success': + if (ret is not None or self._api_result_type == 'success') and self._api_authenticated: # To allow override for restart etc # if the call returns some data we are gonna assume its a success self._api_result_type = 'success'