diff options
author | Alec Warner <antarus@gentoo.org> | 2006-04-02 00:12:34 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2006-04-02 00:12:34 +0000 |
commit | 28a73812f2a1553f52bb1b72d0e7b6edbc0fd4c3 (patch) | |
tree | a678282c202384fc12aa631415b8b40ce182038d | |
parent | 2f599276601a2218d9bec8d89129895f152cf42f (diff) | |
download | portage-28a73812f2a1553f52bb1b72d0e7b6edbc0fd4c3.tar.gz portage-28a73812f2a1553f52bb1b72d0e7b6edbc0fd4c3.tar.bz2 portage-28a73812f2a1553f52bb1b72d0e7b6edbc0fd4c3.zip |
Fixing stupid exception handling
svn path=/main/trunk/; revision=3051
-rwxr-xr-x | bin/emerge | 4 |
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 |