ericholscher / django-test-utils

Utilities for testing Django applications
http://django-test-utils.readthedocs.org/
MIT License
343 stars 69 forks source link

crawler: ERROR / had unhandled exception: 'response' #27

Open viciu opened 12 years ago

viciu commented 12 years ago

When running ./manage.py crawlurls I get error like this:

crawler     : INFO     START: link to /projects with parameters {}
crawler     : INFO     /projects: link to / with parameters {}
crawler     : ERROR    / had unhandled exception: 'response'
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/test_utils/crawler/base.py", line 121, in run
    resp, returned_urls = self.get_url(from_url, to_url)
  File "/usr/local/lib/python2.6/dist-packages/test_utils/crawler/base.py", line 87, in get_url
    test_signals.post_request.send(self, url=to_url, response=resp)
  File "/usr/local/lib/python2.6/dist-packages/django/dispatch/dispatcher.py", line 172, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/usr/local/lib/python2.6/dist-packages/test_utils/crawler/plugins/sanitize.py", line 28, in post_request
    fo.write(kwargs['response'].content)
KeyError: 'response'