Commit 1213a413 authored by Alain Takoudjou's avatar Alain Takoudjou

grid.promise: do not fail if message is None

parent 1dba7a89
......@@ -58,7 +58,7 @@ class BaseResult(object):
# The promise message should be very short,
# a huge message size can freeze the process Pipe
# XXX this is important to prevent process deadlock
if len(message) > 5000:
if message is not None and len(message) > 5000:
message = '...%s' % message[-5000:]
self.__message = message
self.__date = date
......
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