fixed manual pull error

Saw this error: UnboundLocalError: local variable 'modcomicnm'
referenced before assignment

Added one line to make sure modcomicnm was initialized
This commit is contained in:
Clay Mitchell 2013-01-11 22:32:34 -05:00
parent 1b34db1f5c
commit 64d5edc795
1 changed files with 2 additions and 0 deletions

View File

@ -419,8 +419,10 @@ def pullitcheck(comic1off_name=None,comic1off_id=None):
comicnm = re.sub('[\_\#\,\/\:\;\.\-\!\$\%\&\+\'\?\@]', '', str(comicnm))
watchcomic = re.sub(r'\s', '', watchcomic)
comicnm = re.sub(r'\s', '', comicnm)
modcomicnm = ''
logger.fdebug("Revised_Watch: " + str(watchcomic))
logger.fdebug("ComicNM: " + str(comicnm))
if 'THE' in str(watchcomic):
modcomicnm = re.sub('THE', '', comicnm)
if str(comicnm) == str(watchcomic).upper() or str(modcomicnm) == str(watchcomic).upper():