diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-17 13:59:32 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-17 13:59:32 +0200 |
commit | 347a938dadef3d5f0bed4663aacf79ce251aca9e (patch) | |
tree | 38f23ab55e37d2a25186f79f491596d8b057ffed /python3 | |
parent | in shebang change python to python3 so that is will run on python3 of distributions that do not have python3 as default (diff) | |
download | sha3sum-347a938dadef3d5f0bed4663aacf79ce251aca9e.tar.gz sha3sum-347a938dadef3d5f0bed4663aacf79ce251aca9e.tar.bz2 sha3sum-347a938dadef3d5f0bed4663aacf79ce251aca9e.tar.xz |
fix for exception catching with stdin as filename by None
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | python3/sha3sum.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. 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: |