aboutsummaryrefslogtreecommitdiffstats
path: root/python3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-17 13:59:32 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-17 13:59:32 +0200
commit347a938dadef3d5f0bed4663aacf79ce251aca9e (patch)
tree38f23ab55e37d2a25186f79f491596d8b057ffed /python3
parentin shebang change python to python3 so that is will run on python3 of distributions that do not have python3 as default (diff)
downloadsha3sum-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 'python3')
-rwxr-xr-xpython3/sha3sum.py2
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: