summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2006-04-02 00:12:34 +0000
committerAlec Warner <antarus@gentoo.org>2006-04-02 00:12:34 +0000
commit28a73812f2a1553f52bb1b72d0e7b6edbc0fd4c3 (patch)
treea678282c202384fc12aa631415b8b40ce182038d
parent2f599276601a2218d9bec8d89129895f152cf42f (diff)
downloadportage-28a73812f2a1553f52bb1b72d0e7b6edbc0fd4c3.tar.gz
portage-28a73812f2a1553f52bb1b72d0e7b6edbc0fd4c3.tar.bz2
portage-28a73812f2a1553f52bb1b72d0e7b6edbc0fd4c3.zip
Fixing stupid exception handling
svn path=/main/trunk/; revision=3051
-rwxr-xr-xbin/emerge4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/emerge b/bin/emerge
index bb310f126..21730fe3e 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -154,9 +154,7 @@ def sorted_versions(verlist):
if portage.settings.has_key("PORTAGE_NICENESS"):
try:
os.nice(int(portage.settings["PORTAGE_NICENESS"]))
- except SystemExit, e:
- raise # Needed else can't exit
- except Exception,e:
+ except (OSError,ValueError), e:
print "!!! Failed to change nice value to '"+str(portage.settings["PORTAGE_NICENESS"])+"'"
print "!!!",e