In Python I have this statement:
blog_ids = [c.blog_id for c in connections]
Which basically tells Python to create an array of all the blog IDs in the connections. Unfortunately, if the connections object has some None types, c.blog_id would cause an exception. Is there any syntax to solve this problem? I tried this but it doesn't work:
blog_ids = [c.blog_id for c not None in connections]