Commit 181fccfd authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Bug fixed when loading talk with an invalid conference.

parent cdfcf28a
......@@ -1632,8 +1632,8 @@ class Proceedings(PublicationsTool):
# conference is either a Record or and error msg
if isinstance(conference, (str, unicode)):
msg = conference
if (isinstance(msg, unicode)):
msg = conference.encode('utf-8')
if isinstance(msg, unicode):
msg = msg.encode('utf-8')
self.logs[-1].reject(msg)
return 0
......@@ -1953,7 +1953,9 @@ class Talks(PublicationsTool):
# conference is either a Record or and error msg
if isinstance(conference, (str, unicode)):
msg = conference.encode('utf-8')
msg = conference
if isinstance(msg, unicode):
msg = msg.encode('utf-8')
self.logs[-1].reject(msg)
return 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment