From 33d2d10156a8eb13d6825927d7f3b7f192b4e6ec Mon Sep 17 00:00:00 2001 From: Michael Rosenberg Date: Tue, 30 Apr 2019 14:21:09 -0400 Subject: [PATCH] suppress file output statemetn if no file is output --- phy2html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phy2html.py b/phy2html.py index 9151d93..c062d28 100644 --- a/phy2html.py +++ b/phy2html.py @@ -215,8 +215,8 @@ def create_html_tree(inname: str, outname: str, col_width: str = "40px", row_hei if outname != "": # if output file name is provided, write to file with open(outname, "w") as outfile: outfile.writelines(outlist) - if verbose: - print("HTML file created: " + outname) + if verbose: + print("HTML file created: " + outname) return outlist