[et-mgmt-tools] [PATCH] Fix traceback on commands run with -h

Michael DeHaan mdehaan at redhat.com
Tue Feb 19 16:29:55 UTC 2008


Jeremy Rosengren wrote:
> I compiled from latest git and am seeing what I've copied below.  
> Stephen Smoogen also reported the problem using the latest published 
> RPM version (which is also where I first saw it):  
> https://www.redhat.com/archives/et-mgmt-tools/2008-February/msg00112.html
>
> From what I saw in cobbler.py from latest git, the conditional in 
> main() was giving the traceback all the time.  The "else" case of 
> print str(exc2)[1:-1] had flipped sides of the conditional statement 
> from a couple of revisions back.
>

I don't agree with the patch, but it looks like your particular version 
of optparse is throwing system.exit in a way that cobbler doesn't like 
and we need to catch that /also/.

I'll look into it.   Thanks.






More information about the et-mgmt-tools mailing list