mirror of https://github.com/evilhero/mylar
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:
parent
1b34db1f5c
commit
64d5edc795
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue