mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Return API result error when unauthenticaed
This commit is contained in:
parent
819829554b
commit
68df0f07c8
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue