Fixing a bug with deny lists
[theonering] / src / gvoice / addressbook.py
index 8efb26f..9071b19 100644 (file)
@@ -60,7 +60,7 @@ class Addressbook(object):
 
        def is_blocked(self, strippedNumber):
                try:
-                       return self._numbers[strippedNumber][1]["response"] == self._RESPONSE_BLOCKED
+                       return self._numbers[strippedNumber][2]["response"] == self._RESPONSE_BLOCKED
                except KeyError:
                        return False