Re: [PATCH] Fix traceback on commands run with -h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





It is only legal in python >= 2.5, so you'll need to fix that if you
support 2.4 or earlier for cobbler

Dan.

Yep, I settled on just:

except SystemExit:
pass

just because on SystemExit optparse has already printed what it wants to print, and we don't use SystemExit elsewhere.

This has been your daily python lesson on et-mgmt-tools@xxxxxxxxxx :)

--Michael


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux