1. Robot Mirror
  2. bugs.python.org

Commits

martin.v.loewis  committed bb1161d

Issue 326: Catch IndexError.

  • Participants
  • Parent commits c699f19
  • Branches default

Comments (0)

Files changed (1)

File schema.py

View file
 
         try:
             score = klass.get(itemid, 'spambayes_score')
-        except KeyError:
+        except (KeyError, IndexError):
             return True
 
         if score > cutoff_score: