From 38a74f5470864a648e13d390f6c23e0cd40a18e0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 11 Jul 2006 00:59:10 +0000 Subject: [PATCH] Just use the raise statement alone to re-raise exceptions. svn path=/main/trunk/; revision=3835 --- pym/portage_checksum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage_checksum.py b/pym/portage_checksum.py index fd659eea2..41b336066 100644 --- a/pym/portage_checksum.py +++ b/pym/portage_checksum.py @@ -146,7 +146,7 @@ def perform_checksum(filename, hashname="MD5", calc_prelink=0): if e.errno == errno.ENOENT: raise portage_exception.FileNotFound(myfilename) else: - raise e + raise if calc_prelink and prelink_capable: try: os.unlink(prelink_tmpfile) @@ -154,7 +154,7 @@ def perform_checksum(filename, hashname="MD5", calc_prelink=0): if oe.errno == errno.ENOENT: pass else: - raise oe + raise portage_locks.unlockfile(mylock) return (myhash,mysize) -- 2.26.2