summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
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