From: Zac Medico Date: Tue, 11 Jul 2006 00:59:10 +0000 (-0000) Subject: Just use the raise statement alone to re-raise exceptions. X-Git-Tag: v2.1.1~244 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38a74f5470864a648e13d390f6c23e0cd40a18e0;p=portage.git Just use the raise statement alone to re-raise exceptions. svn path=/main/trunk/; revision=3835 --- 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)