# HG changeset patch # User Paul Boddie # Date 1315764581 -7200 # Node ID a4793fd85d28d23aa3593c2502f2bf58d617f4c0 # Parent e6a4c4123f42d5fe4140c106a0d8a6b64bb6b5c6 Prevent empty "geo" fields from providing values. diff -r e6a4c4123f42 -r a4793fd85d28 EventAggregatorSupport.py --- a/EventAggregatorSupport.py Sun Sep 11 20:08:51 2011 +0200 +++ b/EventAggregatorSupport.py Sun Sep 11 20:09:41 2011 +0200 @@ -643,6 +643,8 @@ elif property == "GEO": try: value = map(getMapReferenceFromDecimal, to_list(value, ";")) + if len(value) != 2: + continue except (KeyError, ValueError): continue @@ -792,6 +794,8 @@ elif term == "geo": try: desc = map(getMapReference, to_list(desc, None)) + if len(desc) != 2: + continue except (KeyError, ValueError): continue