mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -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'):
|
||||
logger._BLACKLIST_WORDS.add(kwargs['password'])
|
||||
|
||||
result = {}
|
||||
result = None
|
||||
logger.api_debug('Tautulli APIv2 :: API called with kwargs: %s' % kwargs)
|
||||
|
||||
self._api_validate(**kwargs)
|
||||
|
@ -793,7 +793,7 @@ General optional parameters:
|
|||
try:
|
||||
if isinstance(result, (dict, list)):
|
||||
ret = result
|
||||
else:
|
||||
elif result is not None:
|
||||
raise Exception
|
||||
except Exception:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue