From c80b02dd72ad6761dad6444af205a48d753de961 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Thu, 19 Jan 2017 15:10:17 +0100 Subject: [PATCH] avoid reporting "none" as STDIN filename --- processing/post/addDisplacement.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/processing/post/addDisplacement.py b/processing/post/addDisplacement.py index 611e21db2..bc1d7377b 100755 --- a/processing/post/addDisplacement.py +++ b/processing/post/addDisplacement.py @@ -128,7 +128,8 @@ for name in filenames: outname = outname, buffered = False) except: continue - damask.util.report(scriptName,'{}{}'.format(name,' --> {}'.format(outname) if outname else '')) + damask.util.report(scriptName,'{}{}'.format(name if name else '', + ' --> {}'.format(outname) if outname else '')) # ------------------------------------------ read header ------------------------------------------