diff --git a/python/damask/util.py b/python/damask/util.py index b73206067..273da8c1e 100644 --- a/python/damask/util.py +++ b/python/damask/util.py @@ -71,7 +71,7 @@ def croak(what, newline = True): Separate items of what by newline. Defaults to True. """ - if what: + if what is not None: sys.stderr.write(srepr(what,glue = '\n') + ('\n' if newline else '')) sys.stderr.flush()