summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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