projects
/
gc-dialer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c04226
)
Fixing an issue where a contact doesn't have a phoneType
author
Ed Page
<eopage@byu.net>
Sat, 25 Dec 2010 18:24:22 +0000
(12:24 -0600)
committer
Ed Page
<eopage@byu.net>
Sat, 25 Dec 2010 18:24:22 +0000
(12:24 -0600)
src/dialogs.py
patch
|
blob
|
history
diff --git
a/src/dialogs.py
b/src/dialogs.py
index
63ccd81
..
0271758
100644
(file)
--- a/
src/dialogs.py
+++ b/
src/dialogs.py
@@
-543,7
+543,7
@@
def _get_contact_numbers(session, contactId, numberDescription):
except KeyError:
contactPhoneNumbers = []
contactPhoneNumbers = [
- (contactPhoneNumber["phoneNumber"], contactPhoneNumber["phoneType"])
+ (contactPhoneNumber["phoneNumber"], contactPhoneNumber.get("phoneType", "Unknown"))
for contactPhoneNumber in contactPhoneNumbers
]
if contactPhoneNumbers: