A case was made for keeping in the unknown phone types
authorepage <eopage@byu.net>
Sat, 9 Jan 2010 00:49:20 +0000 (00:49 +0000)
committerepage <eopage@byu.net>
Sat, 9 Jan 2010 00:49:20 +0000 (00:49 +0000)
git-svn-id: file:///svnroot/gc-dialer/trunk@620 c39d3808-3fe2-4d86-a59f-b7f623ee9f21

src/backends/gv_backend.py

index db2c341..16aef65 100644 (file)
@@ -168,11 +168,10 @@ class GVDialer(object):
                if self._contacts is None:
                        self._update_contacts_cache()
                contactDetails = self._contacts[contactId]
-               # Filtering out lack of a phoneType because those are just things like faxes
+               # Defaulting phoneTypes because those are just things like faxes
                return (
-                       (number["phoneType"], number["phoneNumber"])
+                       (number.get("phoneType", ""), number["phoneNumber"])
                        for number in contactDetails["numbers"]
-                       if "phoneType" in number
                )
 
        def get_messages(self):