From: stephendenham Date: Thu, 24 Apr 2014 15:45:01 +0000 (+0000) Subject: Dump traceback to log if initialisation fails. X-Git-Url: https://git.hcoop.net/clinton/xbmc-groove.git/commitdiff_plain/2486a54c548c6766fa114a13f8cc1337bba4f1ec Dump traceback to log if initialisation fails. git-svn-id: svn://svn.code.sf.net/p/xbmc-groove/code@94 2dec19e3-eb1d-4749-8193-008c8bba0994 --- diff --git a/default.py b/default.py index c881fb6..8667bfc 100644 --- a/default.py +++ b/default.py @@ -16,7 +16,7 @@ # along with xbmc-groove. If not, see . -import urllib, sys, os, shutil, re, pickle, time, xbmcaddon, xbmcplugin, xbmcgui, xbmc +import urllib, sys, os, shutil, re, pickle, time, traceback, xbmcaddon, xbmcplugin, xbmcgui, xbmc __addon__ = xbmcaddon.Addon('plugin.audio.groove') __addonname__ = __addon__.getAddonInfo('name') @@ -103,6 +103,10 @@ try: if groovesharkApi.pingService() != True: raise StandardError(__language__(30007)) except: + print "Exception on initialisation" + print '-'*60 + traceback.print_exc() + print '-'*60 dialog = xbmcgui.Dialog(__language__(30008),__language__(30009),__language__(30010)) dialog.ok(__language__(30008),__language__(30009)) sys.exit(-1)