commit:     b0c412abe2692cb3697e79aaa90eb040eba88160
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 22 01:54:08 2014 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Fri Apr 18 16:50:36 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=b0c412ab

Remove excessive exceptions hiding tracebacks

---
 catalyst/main.py | 28 ++++++----------------------
 1 file changed, 6 insertions(+), 22 deletions(-)

diff --git a/catalyst/main.py b/catalyst/main.py
index 6f8bd8d..0366932 100644
--- a/catalyst/main.py
+++ b/catalyst/main.py
@@ -349,10 +349,10 @@ def main():
        try:
                build_target(addlargs)
 
-       except CatalystError:
-               print
-               print "Catalyst aborting...."
-               sys.exit(2)
+       #except CatalystError:
+       #       print
+       #       print "Catalyst aborting...."
+       #       sys.exit(2)
        except KeyboardInterrupt:
                print "\nCatalyst build aborted due to user interrupt ( Ctrl-C 
)"
                print
@@ -361,24 +361,8 @@ def main():
        except LockInUse:
                print "Catalyst aborting...."
                sys.exit(2)
-       except:
-               print "Catalyst aborting...."
-               raise
-               sys.exit(2)
-
-       #except CatalystError:
-       #       print
-       #       print "Catalyst aborting...."
-       #       sys.exit(2)
-       #except KeyError:
-       #       print "\nproblem with command line or spec file ( Key Error )"
-       #       print "Key: "+str(sys.exc_value)+" was not found"
+       #except:
        #       print "Catalyst aborting...."
-       #       sys.exit(2)
-       #except UnboundLocalError:
-       #       print
-       #       print "UnboundLocalError: "+str(sys.exc_value)+" was not found"
        #       raise
-       #       print
-       #       print "Catalyst aborting...."
        #       sys.exit(2)
+

Reply via email to