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:
+1
-1
@@ -409,7 +409,7 @@ def sha1_file(filename):
|
|||||||
del block
|
del block
|
||||||
return m.hexdigest()
|
return m.hexdigest()
|
||||||
except IOError:
|
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):
|
def sha1_data(data):
|
||||||
"""Calculate sha1 hash of given data."""
|
"""Calculate sha1 hash of given data."""
|
||||||
|
|||||||
Reference in New Issue
Block a user