Skip to content

Commit

Permalink
catch valueerror
Browse files Browse the repository at this point in the history
  • Loading branch information
michael committed Jul 1, 2015
1 parent 2ed7cc9 commit 1bc7148
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions postConversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
episode = int(sys.argv[5])

converter = MkvtoMp4(settings)

log.debug("Input file: %s." % inputfile)
log.debug("Original name: %s." % original)
log.debug("TVDB ID: %s." % tvdb_id)
log.debug("Season: %s episode: %s." % (season, episode))

if MkvtoMp4(settings).validSource(inputfile):
log.info("Processing %s." % inputfile)

output = converter.process(inputfile, original=original)

# Tag with metadata
if settings.tagfile:
log.info("Tagging %s with ID %s season %s episode %s." % (inputfile, tvdb_id, season, episode))
Expand All @@ -55,7 +55,7 @@
refresh = json.load(urllib.urlopen(settings.getRefreshURL(tvdb_id)))
for item in refresh:
log.debug(refresh[item])
except IOError:
except (IOError, ValueError):
log.exception("Couldn't refresh Sickbeard, check your autoProcess.ini settings.")

plex.refreshPlex(settings, 'show')
Expand Down

0 comments on commit 1bc7148

Please sign in to comment.