Commit 0a8f867c authored by Benjamin Albrecht's avatar Benjamin Albrecht

Ensure em_types is not None before iterating over it

parent 39a684c9
......@@ -297,9 +297,9 @@ class CDContact(Contact):
# ## We will do something here to save the label as well.
# self.add_email_other(em.value)
em_types = [x.lower() for x in em_types]
if em_types:
em_types = [x.lower() for x in em_types]
if 'pref' in em_types:
self.set_email_prim(em.value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment