Added a check to ensure we didn't go out of bounds of an array

This commit is contained in:
Todd Johnson 2013-04-03 01:44:41 -06:00
parent df322cc1d6
commit 3e36ed21d6
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ def forceRescan(ComicID,archive=None):
# fcdigit = fcnew[som].lstrip('0')
#fcdigit = str(int(fcnew[som]))
fcdigit = int(fcnew[som]) * 1000
if 'au' in fcnew[som+1].lower():
if som+1 < len(fcnew) and 'au' in fcnew[som+1].lower():
#print ("AU detected")
#if the 'AU' is in 005AU vs 005 AU it will yield different results.
fnd_iss_except = 'AU'