Paste number 42421: dbs - facbackopac AttributeError at /catalog/search/

Paste number 42421: dbs - facbackopac AttributeError at /catalog/search/
Pasted by: anarchivist
When:2 years, 3 weeks ago
Share:Tweet this! | http://paste.lisp.org/+WQD
Channel:#code4lib
Paste contents:
Raw Source | XML | Display As
AttributeError at /catalog/search/
'NoneType' object has no attribute 'group'
Request Method: 	GET
Request URL: 	http://127.0.0.1:8000/catalog/search/
Exception Type: 	AttributeError
Exception Value: 	'NoneType' object has no attribute 'group'
Exception Location: 	/home/matienzo/Desktop/fbotest/fac-back-opac/catalog/catalog/views.py in getsearchresults, line 132

Traceback (most recent call last):
File "/var/lib/python-support/python2.5/django/core/handlers/base.py" in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File "/var/lib/python-support/python2.5/django/views/decorators/vary.py" in inner_func
  16. response = func(*args, **kwargs)
File "/home/matienzo/Desktop/fbotest/fac-back-opac/catalog/catalog/views.py" in search
  27. ctx = getsearchresults(req)
File "/home/matienzo/Desktop/fbotest/fac-back-opac/catalog/catalog/views.py" in getsearchresults
  132. bib_num = ckey.search(itemOn['bib_num']).group(1)

  AttributeError at /catalog/search/
  'NoneType' object has no attribute 'group'

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.