From 1d551a66b45e03628abe5c23a8a1d0ca0f482917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Tue, 7 Jun 2011 10:50:48 +0000 Subject: [PATCH] util: Don't pass the file name in the exception --- pisi/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/util.py b/pisi/util.py index 151fa760..a1e636b7 100644 --- a/pisi/util.py +++ b/pisi/util.py @@ -513,7 +513,7 @@ def sha1_file(filename): except IOError, e: if e.errno == 13: # Permission denied, the file doesn't have read permissions, skip - raise FilePermissionDeniedError(_("You don't have necessary permissions to read %s") % filename) + raise FilePermissionDeniedError(_("You don't have necessary read permissions")) else: raise FileError(_("Cannot calculate SHA1 hash of %s") % filename)