Skip to content

Commit

Permalink
Removing ParseError for now until I can figure out a way to handle it…
Browse files Browse the repository at this point in the history
… in elementtree 1.2.7
  • Loading branch information
jcputney committed Oct 19, 2011
1 parent e8b3281 commit ffa7aa5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from resources.lib import language
from resources.lib.fileops import fileops

from elementtree.ElementTree import ParseError
#from elementtree.ElementTree import ParseError


__language__ = language.get_abbrev()
Expand Down Expand Up @@ -270,10 +270,10 @@ def download_fanart(self, media_list, providers):
except ItemNotFoundError, e:
errmsg = '%s not found' % self.media_id
backdrops_result = 'skipping'
except ParseError, e:
self.xmlfailcount = self.xmlfailcount + 1
errmsg = 'Error parsing xml: %s' % str(e)
backdrops_result = 'retrying'
# except ParseError, e:
# self.xmlfailcount = self.xmlfailcount + 1
# errmsg = 'Error parsing xml: %s' % str(e)
# backdrops_result = 'retrying'
except HTTPTimeout, e:
self.failcount = self.failcount + 1
errmsg = 'Timed out'
Expand Down

0 comments on commit ffa7aa5

Please sign in to comment.