Skip to content

Commit

Permalink
[debug] doc import error
Browse files Browse the repository at this point in the history
  • Loading branch information
ver217 committed Dec 23, 2024
1 parent f585423 commit f0fe782
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import inspect
import json
import re
import traceback
import types

from .convert_md_to_mdx import convert_md_docstring_to_mdx
Expand Down Expand Up @@ -48,7 +49,9 @@ def find_object_in_package(object_name, package):
importlib.import_module(f"{package.__name__}.{split}")
submodule = getattr(module, split, None)
except ImportError as e:
print(f"In find_object_in_package: {e}")
print(
f"In find_object_in_package: {traceback.format_exception(etype=type(e), value=e, tb=e.__traceback__)}"
)
pass
module = submodule
if module is None:
Expand Down

0 comments on commit f0fe782

Please sign in to comment.