# HG changeset patch # User Richard Penman # Date 1464899853 25200 # Node ID 0b098688af21648e0d660e5050863555384df662 # Parent 98fe26cdbb717b181ea8f6c8064cf3d3cf551388 ignore junk results by taking the last registrar details issue #85 diff -r 98fe26cdbb71 -r 0b098688af21 whois/parser.py --- a/whois/parser.py Thu Jun 02 13:25:07 2016 -0700 +++ b/whois/parser.py Thu Jun 02 13:37:33 2016 -0700 @@ -135,6 +135,8 @@ if value and value not in values: # avoid duplicates values.append(value) + if values and attr in ('registrar', 'whois_server', 'referral_url'): + values = values[-1] # ignore junk if len(values) == 1: values = values[0] elif not values: