[pyzo] 02/07: Fix #438 introspecting some objects fails
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Sep 29 09:27:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository pyzo.
commit dfb7fc64a584840dfa2a1a08363707326d2ac927
Author: Almar Klein <almar.klein at gmail.com>
Date: Wed Sep 28 11:41:27 2016 +0200
Fix #438 introspecting some objects fails
---
pyzo/pyzokernel/introspection.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pyzo/pyzokernel/introspection.py b/pyzo/pyzokernel/introspection.py
index 9f19f61..68ed841 100644
--- a/pyzo/pyzokernel/introspection.py
+++ b/pyzo/pyzokernel/introspection.py
@@ -57,7 +57,10 @@ class PyzoIntrospector(yoton.RepChannel):
keys = dir(ob)
NS = {}
for key in keys:
- NS[key] = getattr(ob, key)
+ try:
+ NS[key] = getattr(ob, key)
+ except Exception:
+ NS[key] = '<unknown>'
# Done
return NS
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyzo.git
More information about the debian-science-commits
mailing list