looks like platform is throwing an exception on some systems so catch it

This commit is contained in:
sfaulds 2016-11-10 16:09:23 +11:00
parent 8669f41a2d
commit 5cc3847e47
2 changed files with 6 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.emby"
name="Emby"
version="2.3.10"
version="2.3.11"
provider-name="Emby.media">
<requires>
<import addon="xbmc.python" version="2.19.0"/>

View file

@ -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