Skip to content

Adding google contact without full name crashes plex.py #1

Description

@olliebun

Running "python2.6 inplex_google.py" produces the following output on any contact records with 'fn': None

{'vcard': [{'connections': [{'smtp': '$EMAIL'}], 'fn': None}]}
Traceback (most recent call last):
File "inplex_google.py", line 257, in
main()
File "inplex_google.py", line 253, in main
sample.Run()
File "inplex_google.py", line 205, in Run
self.AddContacts(feed)
File "inplex_google.py", line 164, in AddContacts
self.SendToPlex(db_entry)
File "inplex_google.py", line 198, in SendToPlex
plx.add_from_jcard(vcard)
File "/home/dbryan/plexus/plex.py", line 130, in add_from_jcard
fullname = name.split()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions