Add traceback to library sync

This commit is contained in:
tomkat83 2016-03-10 09:58:26 +01:00
parent a5d37caef0
commit 58d986f4ad

View file

@ -290,6 +290,8 @@ class Movies(Items):
self.logMsg('itemtypes.py for movies has crashed for item %s. ' self.logMsg('itemtypes.py for movies has crashed for item %s. '
'Error:' % item.attrib.get('ratingKey', None), -1) 'Error:' % item.attrib.get('ratingKey', None), -1)
self.logMsg(e, -1) self.logMsg(e, -1)
import traceback
self.logMsg("Traceback:\n%s" % traceback.format_exc(), 0)
self.logMsg('The item xml is:', -1) self.logMsg('The item xml is:', -1)
try: try:
import xml.etree.cElementTree as etree import xml.etree.cElementTree as etree
@ -929,6 +931,8 @@ class TVShows(Items):
self.logMsg('itemtypes.py for tv show has crashed for item %s. ' self.logMsg('itemtypes.py for tv show has crashed for item %s. '
'Error:' % item.attrib.get('ratingKey', None), -1) 'Error:' % item.attrib.get('ratingKey', None), -1)
self.logMsg(e, -1) self.logMsg(e, -1)
import traceback
self.logMsg("Traceback:\n%s" % traceback.format_exc(), 0)
self.logMsg('The item xml is:', -1) self.logMsg('The item xml is:', -1)
try: try:
import xml.etree.cElementTree as etree import xml.etree.cElementTree as etree
@ -1132,6 +1136,8 @@ class TVShows(Items):
self.logMsg('itemtypes.py for tv seasons has crashed for item %s. ' self.logMsg('itemtypes.py for tv seasons has crashed for item %s. '
'Error:' % item.attrib.get('ratingKey', None), -1) 'Error:' % item.attrib.get('ratingKey', None), -1)
self.logMsg(e, -1) self.logMsg(e, -1)
import traceback
self.logMsg("Traceback:\n%s" % traceback.format_exc(), 0)
self.logMsg('The item xml is:', -1) self.logMsg('The item xml is:', -1)
try: try:
import xml.etree.cElementTree as etree import xml.etree.cElementTree as etree
@ -1183,6 +1189,8 @@ class TVShows(Items):
self.logMsg('itemtypes.py for tv episode has crashed for item %s. ' self.logMsg('itemtypes.py for tv episode has crashed for item %s. '
'Error:' % item.attrib.get('ratingKey', None), -1) 'Error:' % item.attrib.get('ratingKey', None), -1)
self.logMsg(e, -1) self.logMsg(e, -1)
import traceback
self.logMsg("Traceback:\n%s" % traceback.format_exc(), 0)
self.logMsg('The item xml is:', -1) self.logMsg('The item xml is:', -1)
try: try:
import xml.etree.cElementTree as etree import xml.etree.cElementTree as etree
@ -1670,6 +1678,8 @@ class Music(Items):
'item %s. Error:' 'item %s. Error:'
% item.attrib.get('ratingKey', None), -1) % item.attrib.get('ratingKey', None), -1)
self.logMsg(e, -1) self.logMsg(e, -1)
import traceback
self.logMsg("Traceback:\n%s" % traceback.format_exc(), 0)
self.logMsg('The item xml is:', -1) self.logMsg('The item xml is:', -1)
try: try:
import xml.etree.cElementTree as etree import xml.etree.cElementTree as etree
@ -1772,6 +1782,8 @@ class Music(Items):
'item %s. Error:' 'item %s. Error:'
% item.attrib.get('ratingKey', None), -1) % item.attrib.get('ratingKey', None), -1)
self.logMsg(e, -1) self.logMsg(e, -1)
import traceback
self.logMsg("Traceback:\n%s" % traceback.format_exc(), 0)
self.logMsg('The item xml is:', -1) self.logMsg('The item xml is:', -1)
try: try:
import xml.etree.cElementTree as etree import xml.etree.cElementTree as etree
@ -1976,6 +1988,8 @@ class Music(Items):
'item %s. Error:' 'item %s. Error:'
% item.attrib.get('ratingKey', None), -1) % item.attrib.get('ratingKey', None), -1)
self.logMsg(e, -1) self.logMsg(e, -1)
import traceback
self.logMsg("Traceback:\n%s" % traceback.format_exc(), 0)
self.logMsg('The item xml is:', -1) self.logMsg('The item xml is:', -1)
try: try:
import xml.etree.cElementTree as etree import xml.etree.cElementTree as etree