conduit r1525 - in trunk: . conduit/datatypes
- From: johncarr svn gnome org
- To: svn-commits-list gnome org
- Subject: conduit r1525 - in trunk: . conduit/datatypes
- Date: Sun, 22 Jun 2008 18:47:26 +0000 (UTC)
Author: johncarr
Date: Sun Jun 22 18:47:26 2008
New Revision: 1525
URL: http://svn.gnome.org/viewvc/conduit?rev=1525&view=rev
Log:
2008-06-22 John Carr <john carr unrouted co uk>
* conduit/datatypes/Contact.py:
Check contact has email property before looping through it.
Modified:
trunk/ (props changed)
trunk/ChangeLog
trunk/conduit/datatypes/Contact.py
Modified: trunk/conduit/datatypes/Contact.py
==============================================================================
--- trunk/conduit/datatypes/Contact.py (original)
+++ trunk/conduit/datatypes/Contact.py Sun Jun 22 18:47:26 2008
@@ -30,8 +30,9 @@
def get_emails(self):
emails = []
- for email in self.vcard.contents['email']:
- emails.append(email.value)
+ if 'email' in self.vcard.contents:
+ for email in self.vcard.contents['email']:
+ emails.append(email.value)
return emails
def get_name(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]