Changeset c1a39a in indico


Ignore:
Timestamp:
05/25/11 17:02:23 (2 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
ecc645
Parents:
0d8cdc
git-author:
Alberto Resco Perez <alberto.resco.perez@…> (05/25/11 12:00:50)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (05/25/11 17:02:23)
Message:

[FIX] NoneType? has no attribute strip

  • Checks if the address is None before using it.
  • Closes #813.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/pages/sessions.py

    r70af2a rc1a39a  
    464464        if loc is not None and loc.getName().strip()!="": 
    465465            vars["location"]="""<i>%s</i>"""%self.htmlText(loc.getName()) 
    466             if loc.getAddress().strip()!="": 
     466            if loc.getAddress() is not None and loc.getAddress().strip()!="": 
    467467                vars["location"]="""%s<pre>%s</pre>"""%(vars["location"], 
    468468                                                        loc.getAddress()) 
Note: See TracChangeset for help on using the changeset viewer.