From 3e36ed21d6992691c26bddb91132fd3693801b65 Mon Sep 17 00:00:00 2001 From: Todd Johnson Date: Wed, 3 Apr 2013 01:44:41 -0600 Subject: [PATCH] Added a check to ensure we didn't go out of bounds of an array --- mylar/updater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mylar/updater.py b/mylar/updater.py index 98cbfd6e..b48bc735 100755 --- a/mylar/updater.py +++ b/mylar/updater.py @@ -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'