Skip to content
Browse files

[FIX] Fix author display when no author

  • Loading branch information...
1 parent 640d35b commit 1d15da2b58367cbc331783b3690396e2e2a2a126 @arescope arescope committed with jbenito3 May 11, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 indico/MaKaC/webinterface/pages/authors.py
View
5 indico/MaKaC/webinterface/pages/authors.py
@@ -64,7 +64,10 @@ def _getMaterialHTML(self, contrib):
def getVars(self):
vars=wcomponents.WTemplated.getVars(self)
- authorList=self._conf.getAuthorIndex().getByAuthorObj(self._contrib.getAuthorById(self._authorId))
+ authorObj = self._contrib.getAuthorById(self._authorId)
+ if authorObj is None:
+ raise MaKaCError( _("Not found the author: %s")%self._authorId)
+ authorList=self._conf.getAuthorIndex().getByAuthorObj(authorObj)
author = None
if authorList is not None:
author=authorList[0]

0 comments on commit 1d15da2

Please sign in to comment.
Something went wrong with that request. Please try again.