branch | stable |
changeset 8406 | f3bc8ca0b715 |
parent 8403 | a6ee3cd783e1 |
child 8625 | 7ee0752178e5 |
child 8723 | d2472948da9c |
--- a/dataimport.py Tue May 15 14:43:08 2012 +0200 +++ b/dataimport.py Mon May 14 15:24:07 2012 +0200 @@ -182,7 +182,10 @@ assert isinstance(row, dict) assert isinstance(map, list) for src, dest, funcs in map: - res[dest] = row[src] + try: + res[dest] = row[src] + except KeyError: + continue try: for func in funcs: res[dest] = func(res[dest])