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): ...@@ -1632,8 +1632,8 @@ class Proceedings(PublicationsTool):
# conference is either a Record or and error msg # conference is either a Record or and error msg
if isinstance(conference, (str, unicode)): if isinstance(conference, (str, unicode)):
msg = conference msg = conference
if (isinstance(msg, unicode)): if isinstance(msg, unicode):
msg = conference.encode('utf-8') msg = msg.encode('utf-8')
self.logs[-1].reject(msg) self.logs[-1].reject(msg)
return 0 return 0
...@@ -1953,7 +1953,9 @@ class Talks(PublicationsTool): ...@@ -1953,7 +1953,9 @@ class Talks(PublicationsTool):
# conference is either a Record or and error msg # conference is either a Record or and error msg
if isinstance(conference, (str, unicode)): 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) self.logs[-1].reject(msg)
return 0 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