summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-04-23 13:43:16 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-04-23 13:43:16 -0400
commit5a53dfb37bbd95aa5c3ae5d67c493c2b1879c8f7 (patch)
treeeda627d371acbde447dd50432681c410f900ccc4 /cobbler
parenta3583f38b6bf136a683b14394ee24988a8f206ca (diff)
downloadthird_party-cobbler-5a53dfb37bbd95aa5c3ae5d67c493c2b1879c8f7.tar.gz
third_party-cobbler-5a53dfb37bbd95aa5c3ae5d67c493c2b1879c8f7.tar.xz
third_party-cobbler-5a53dfb37bbd95aa5c3ae5d67c493c2b1879c8f7.zip
Fix instance checking
Diffstat (limited to 'cobbler')
-rwxr-xr-xcobbler/cobbler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py
index c164244..5db40ce 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 isinstance(exc2, CX) or isinstance(exc2, CobblerException)
traceback.print_exc()
else:
print str(exc2)[1:-1] # remove framing air quotes