This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#813 closed defect (fixed)

NoneType object has no attribute strip in session display

Reported by: arescope Owned by: arescope
Priority: high Milestone: v0.98.1
Component: General Version:
Keywords: Cc:

Description

To integrate in 0.98b1

2011-05-25 06:23:59,463 indico.requestHandler - ERROR base.py:346 -- Request 46912759338512 failed: "'NoneType?' object has no attribute 'strip'"

url: http://indico.cern.ch:80/sessionDisplay.py?contribId=12&sessionId=0&confId=129507

parameters: {'contribId': '12', 'sessionId': '0', 'confId': '129507'}

Traceback (most recent call last):

File "/usr/lib/python2.6/site-packages/indico-0.98_dev-py2.6.egg/MaKaC/webinterface/rh/base.py", line 528, in process

res = self._process()

File "/usr/lib/python2.6/site-packages/indico-0.98_dev-py2.6.egg/MaKaC/webinterface/rh/sessionDisplay.py", line 59, in _process

sortingCrit=self._sortingCrit)

File "/usr/lib/python2.6/site-packages/indico-0.98_dev-py2.6.egg/MaKaC/webinterface/pages/base.py", line 176, in display

self._display( params ), \

File "/usr/lib/python2.6/site-packages/indico-0.98_dev-py2.6.egg/MaKaC/webinterface/pages/conferences.py", line 344, in _display

return WPConferenceBase._display(self,params)

File "/usr/lib/python2.6/site-packages/indico-0.98_dev-py2.6.egg/MaKaC/webinterface/pages/base.py", line 232, in _display

return self._applyDecoration( self._getBody( params ) )

File "/usr/lib/python2.6/site-packages/indico-0.98_dev-py2.6.egg/MaKaC/webinterface/meeting.py", line 566, in _getBody

"sortingCrit":params.get("sortingCrit",None)})

File "/usr/lib/python2.6/site-packages/indico-0.98_dev-py2.6.egg/MaKaC/webinterface/meeting.py", line 573, in getHTML

return c.getHTML( params )

File "/usr/lib/python2.6/site-packages/indico-0.98_dev-py2.6.egg/MaKaC/webinterface/wcomponents.py", line 206, in getHTML

vars = self.getVars()

File "/usr/lib/python2.6/site-packages/indico-0.98_dev-py2.6.egg/MaKaC/webinterface/pages/sessions.py", line 466, in getVars

if loc.getAddress().strip()!="":

AttributeError?: 'NoneType?' object has no attribute 'strip'

Change History (6)

comment:1 Changed 4 years ago by arescope

  • Status changed from new to awaiting_merge

comment:2 Changed 4 years ago by arescope

  • Status changed from awaiting_merge to assigned

comment:3 Changed 4 years ago by arescope

  • Status changed from assigned to awaiting_merge

comment:4 Changed 4 years ago by jbenito

  • Status changed from awaiting_merge to merging

comment:5 Changed 4 years ago by Alberto Resco Perez <alberto.resco.perez@…>

  • Resolution set to fixed
  • Status changed from merging to closed

In [c1a39ad7c68168b0210842c3f6ee9915f3b7c11c/indico]:

[FIX] NoneType? has no attribute strip

  • Checks if the address is None before using it.
  • Closes #813.

comment:6 Changed 4 years ago by Alberto Resco Perez <alberto.resco.perez@…>

In [c1a39ad7c68168b0210842c3f6ee9915f3b7c11c/indico]:

[FIX] NoneType? has no attribute strip

  • Checks if the address is None before using it.
  • Closes #813.
Note: See TracTickets for help on using tickets.