Skip to content
Snippets Groups Projects
Commit cf3bfcb0 authored by Dany Lebel's avatar Dany Lebel
Browse files

Added an exception to handle other buggy modules (for example codecs.builtins.False)

parent 858f39b4
No related branches found
No related tags found
No related merge requests found
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
bl_info = { bl_info = {
"name": "API Navigator", "name": "API Navigator",
"author": "Dany Lebel (Axon_D)", "author": "Dany Lebel (Axon_D)",
"version": (1, 0, 1), "version": (1, 0, 2),
"blender": (2, 5, 6), "blender": (2, 5, 7),
"api": 34936, "api": 34995,
"location": "Text Editor > Properties > API Navigator Panel", "location": "Text Editor > Properties > API Navigator Panel",
"description": "Allows to explore the python api via the user interface", "description": "Allows to explore the python api via the user interface",
"warning": "", "warning": "",
...@@ -151,9 +151,10 @@ def get_tree_level(): ...@@ -151,9 +151,10 @@ def get_tree_level():
for i in dir(current_module): for i in dir(current_module):
try : try :
t = str(type(eval(root_m_path + '.' + i))) t = str(type(eval(root_m_path + '.' + i)))
except AttributeError : except (AttributeError, SyntaxError):
bug += [i] bug += [i]
continue continue
if t == "<class 'module'>": if t == "<class 'module'>":
mod += [i] mod += [i]
...@@ -711,4 +712,4 @@ def unregister(): ...@@ -711,4 +712,4 @@ def unregister():
if __name__ == '__main__': if __name__ == '__main__':
register() register()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment