mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 03:28:31 -07:00
Catch exception when retrieving current activity
This commit is contained in:
parent
77bd52b2ae
commit
29522428de
1 changed files with 14 additions and 11 deletions
|
@ -3738,6 +3738,7 @@ class WebInterface(object):
|
|||
}
|
||||
```
|
||||
"""
|
||||
try:
|
||||
pms_connect = pmsconnect.PmsConnect(token=plexpy.CONFIG.PMS_TOKEN)
|
||||
result = pms_connect.get_current_activity()
|
||||
|
||||
|
@ -3751,6 +3752,8 @@ class WebInterface(object):
|
|||
return result
|
||||
else:
|
||||
logger.warn(u"Unable to retrieve data for get_activity.")
|
||||
except Exception as e:
|
||||
logger.exception(u"Unable to retrieve data for get_activity: %s" % e)
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue