changeset 27:83091b7b3e59

now display warning information on unknown people
author Atul Varma <varmaa@toolness.com>
date Sun, 03 Jan 2010 09:16:37 -0800
parents 197980874dd4
children 6e2038000082
files publish_edition.py
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/publish_edition.py	Sun Jan 03 06:36:19 2010 -0800
+++ b/publish_edition.py	Sun Jan 03 09:16:37 2010 -0800
@@ -156,6 +156,13 @@
     if update_whoisi:
         wicache.update()
 
+    whoisi_names = [person['name'] for person in people]
+    unknown_names = [name for name in names
+                     if name not in whoisi_names]
+    if unknown_names:
+        logging.warn('could not find information on: %s.' % 
+                     ', '.join(unknown_names))
+
     following = [person for person in people
                  if person['name'] in names]