summaryrefslogtreecommitdiffstats
path: root/exception.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2008-11-12 17:35:01 -0600
committerDavid Lehman <dlehman@redhat.com>2008-11-12 19:09:07 -0600
commit1241120ae94a5756473340ca144341605d298bfc (patch)
treedfaacac0bb37e27f40f77d664f14ea908299c960 /exception.py
parente7b3e458315a83340eb07b630da5f7194c035064 (diff)
downloadanaconda-1241120ae94a5756473340ca144341605d298bfc.tar.gz
anaconda-1241120ae94a5756473340ca144341605d298bfc.tar.xz
anaconda-1241120ae94a5756473340ca144341605d298bfc.zip
Don't dump private class members (those with leading "__")
Diffstat (limited to 'exception.py')
-rw-r--r--exception.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/exception.py b/exception.py
index e4e7c08ae..b146315aa 100644
--- a/exception.py
+++ b/exception.py
@@ -89,6 +89,9 @@ class AnacondaExceptionDump:
pad = ' ' * ((level) * 2)
for key, value in instance.__dict__.items():
+ if key.startswith("_%s__" % instance.__class__.__name__):
+ continue
+
if parentkey != "":
curkey = parentkey + "." + key
else: