ramusus committed e2ad3b7

added ignore attribute

  • Participants
  • Parent commits e75c7c6

Comments (0)

Files changed (1)

File tracking/

         # see if the user agent is not supposed to be tracked
         for ua in UntrackedUserAgent.objects.all():
             # if the keyword is found in the user agent, stop tracking
-            if unicode(user_agent).find(ua.keyword) != -1:
+            if unicode(user_agent, errors='ignore').find(ua.keyword) != -1:
         if hasattr(request, 'session'):