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
commit 5cc3847e47
2 changed files with 6 additions and 3 deletions

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