ceys / django-tracking

Automatically exported from code.google.com/p/django-tracking
MIT License
0 stars 0 forks source link

'NoneType' object has no attribute 'group' #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In rare occasions some proxy servers do not show any IP address
2.
3.

What is the expected output? What do you see instead?
  File "/usr/local/lib/python2.5/site-packages/tracking/utils.py", line 23,
in get_ip
    ip_address = IP_RE.match(ip_address).group(0)
AttributeError: 'NoneType' object has no attribute 'group'

What version of the product are you using? On what operating system?
django-tracking-0.2.7 on Python 2.5, FreeBSD 

Diff for a solution Attached:

Original issue reported on code.google.com by aab...@gmail.com on 24 Nov 2009 at 11:08

Attachments:

GoogleCodeExporter commented 8 years ago
Seems to have been fixed in 9b72f9bb6d36

Original comment by leidel on 24 Mar 2010 at 12:09

GoogleCodeExporter commented 8 years ago
You are correct!! Thank you for reminding me!

Original comment by wheaties...@gmail.com on 24 Mar 2010 at 3:02