diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-04-23 12:36:10 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-04-23 12:36:10 -0400 |
commit | 7ca984b22725d19890c60423e5156aaa179809ad (patch) | |
tree | 6700ec32b1428c90499c2b09221e33e638633d53 /cobbler | |
parent | dc8db8a8924503232860939eb2e8d151ebea5f9f (diff) | |
download | third_party-cobbler-7ca984b22725d19890c60423e5156aaa179809ad.tar.gz third_party-cobbler-7ca984b22725d19890c60423e5156aaa179809ad.tar.xz third_party-cobbler-7ca984b22725d19890c60423e5156aaa179809ad.zip |
Fix exception processing bug for older broken Python
Diffstat (limited to 'cobbler')
-rwxr-xr-x | cobbler/cobbler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py index c164244..5cd0c2e 100755 --- a/cobbler/cobbler.py +++ b/cobbler/cobbler.py @@ -56,7 +56,7 @@ def main(): except SystemExit: pass # probably exited from optparse, nothing extra to print except Exception, exc2: - if str(type(exc2)).find("CX") == -1: + if str(type(exc2)).find("CX") != -1: traceback.print_exc() else: print str(exc2)[1:-1] # remove framing air quotes |