From 347a938dadef3d5f0bed4663aacf79ce251aca9e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 17 Jun 2013 13:59:32 +0200 Subject: fix for exception catching with stdin as filename by None MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- python3/sha3sum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python3/sha3sum.py b/python3/sha3sum.py index 84fedeb..4063443 100755 --- a/python3/sha3sum.py +++ b/python3/sha3sum.py @@ -987,7 +987,7 @@ along with this program. If not, see . printerr('\033[01;31mLoop found\033[00m') sys.stdout.buffer.flush() except Exception as err: - printerr(cmd + ': connot read file: ' + filename + ': ' + str(err)) + printerr(cmd + ': connot read file: ' + fn + ': ' + str(err)) fail = True sys.stdout.buffer.flush() if fail: -- cgit v1.2.3-70-g09d2