mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Catch failure to send analytics event
This commit is contained in:
parent
ae41b22e59
commit
559a9b393e
1 changed files with 4 additions and 1 deletions
|
@ -1722,4 +1722,7 @@ def analytics_event(category, action, label=None, value=None, **kwargs):
|
|||
data.update(kwargs)
|
||||
|
||||
if TRACKER:
|
||||
TRACKER.send('event', data)
|
||||
try:
|
||||
TRACKER.send('event', data)
|
||||
except Exception as e:
|
||||
logger.warn(u"Failed to send analytics event for category '%s', action '%s': %s" % (category, action, e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue