country code parser failing

Bug #692347 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Released
Low
Stefano Rivera

Bug Description

Query: .tt
ERROR:scripts.ibid-plugin:Exception occured in TLD processor of network plugin
Traceback (most recent call last):
  File "scripts/ibid-plugin", line 129, in <module>
    processor.process(event)
  File "./ibid/plugins/__init__.py", line 145, in process
    method(event, *match.groups())
  File "./ibid/plugins/network.py", line 447, in tld_to_country
    self.country_codes = get_country_codes()
  File "./ibid/utils/__init__.py", line 369, in get_country_codes
    country, code = line.split(u';')
ValueError: need more than 1 value to unpack
Response: That didn't go down very well. Burp.

Looks like it's due to a blank line at the end of the ISO-3166 file.

Related branches

Changed in ibid:
status: In Progress → Fix Committed
Changed in ibid:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.