From 5cc3847e473ae85075851aa01b87e073d7abe247 Mon Sep 17 00:00:00 2001 From: sfaulds Date: Thu, 10 Nov 2016 16:09:23 +1100 Subject: [PATCH] looks like platform is throwing an exception on some systems so catch it --- addon.xml | 2 +- resources/lib/service_entry.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index 6fc37717..e565c1e4 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/service_entry.py b/resources/lib/service_entry.py index 87cd8197..443c9248 100644 --- a/resources/lib/service_entry.py +++ b/resources/lib/service_entry.py @@ -165,8 +165,11 @@ class Service(object): ga = GoogleAnalytics() ga.sendEventData("Application", "Startup", serverId) - ga.sendEventData("Version", "OS", platform.platform()) - ga.sendEventData("Version", "Python", platform.python_version()) + try: + ga.sendEventData("Version", "OS", platform.platform()) + ga.sendEventData("Version", "Python", platform.python_version()) + except Exception: + pass # Start up events self.warn_auth = True