mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 00:32:58 -07:00
Fix API return error for HTTP status 500
This commit is contained in:
parent
4585057a9e
commit
06a9bb10cc
1 changed files with 2 additions and 2 deletions
|
@ -759,7 +759,7 @@ General optional parameters:
|
||||||
if kwargs.get('password'):
|
if kwargs.get('password'):
|
||||||
logger._BLACKLIST_WORDS.add(kwargs['password'])
|
logger._BLACKLIST_WORDS.add(kwargs['password'])
|
||||||
|
|
||||||
result = {}
|
result = None
|
||||||
logger.api_debug('Tautulli APIv2 :: API called with kwargs: %s' % kwargs)
|
logger.api_debug('Tautulli APIv2 :: API called with kwargs: %s' % kwargs)
|
||||||
|
|
||||||
self._api_validate(**kwargs)
|
self._api_validate(**kwargs)
|
||||||
|
@ -793,7 +793,7 @@ General optional parameters:
|
||||||
try:
|
try:
|
||||||
if isinstance(result, (dict, list)):
|
if isinstance(result, (dict, list)):
|
||||||
ret = result
|
ret = result
|
||||||
else:
|
elif result is not None:
|
||||||
raise Exception
|
raise Exception
|
||||||
except Exception:
|
except Exception:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue