Filtering out lack of phonetype instead of setting it to blank
[gc-dialer] / src / backends / gv_backend.py
index df9e3a6..fea3806 100644 (file)
@@ -169,8 +169,9 @@ class GVDialer(object):
                        self._update_contacts_cache()
                contactDetails = self._contacts[contactId]
                return (
-                       (number.get("phoneType", ""), number["phoneNumber"])
+                       (number["phoneType"], number["phoneNumber"])
                        for number in contactDetails["numbers"]
+                       if "phoneType" in number
                )
 
        def get_messages(self):