pisi cli does not have to give all user friendly messages. But "I/O Error"

is not necessary here.

BUG:FIXED:6402
This commit is contained in:
Faik Uygur
2008-11-25 07:54:16 +00:00
parent 9e05b590ac
commit b78276fc3d
+1 -1
View File
@@ -409,7 +409,7 @@ def sha1_file(filename):
del block
return m.hexdigest()
except IOError:
raise FileError(_("I/O Error: Cannot calculate SHA1 hash of %s") % filename)
raise FileError(_("Cannot calculate SHA1 hash of %s") % filename)
def sha1_data(data):
"""Calculate sha1 hash of given data."""