Files
jellycon/default.py
2017-07-05 07:54:14 +10:00

23 lines
594 B
Python

# Gnu General Public License - see LICENSE.TXT
from resources.lib.simple_logging import SimpleLogging
from resources.lib.functions import mainEntryPoint
from resources.lib.ga_client import GoogleAnalytics, log_error
log = SimpleLogging('default')
log.info("About to enter mainEntryPoint()")
try:
mainEntryPoint()
except Exception as error:
ga = GoogleAnalytics()
err_strings = ga.formatException()
ga.sendEventData("Exception", err_strings[0], err_strings[1])
log.error(str(error))
log.error(str(err_strings))
raise
# clear done and exit.
# sys.modules.clear()