Skip to content

Commit

Permalink
Fixed import error in makedoc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan authored and anandology committed Feb 18, 2017
1 parent 1702bd0 commit 21dccd0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/makedoc.py
Expand Up @@ -164,8 +164,12 @@ def main(modules=None):
print '<li><a href="#%(name)s">%(name)s</a></li>' % dict(name=name)
print '</ul>'
for name in modules:
mod = __import__(name, {}, {}, 'x')
recurse_over(mod, name)
try:
mod = __import__(name, {}, {}, 'x')
recurse_over(mod, name)
except ImportError as e:
print >> sys.stderr, "Unable to import module %s (Error: %s)" % (name, e)
pass
print '</div>'

if __name__ == '__main__':
Expand Down

0 comments on commit 21dccd0

Please sign in to comment.