Skip to content

Commit

Permalink
just skip import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Apr 27, 2024
1 parent d1dd74d commit 88f38a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/generate_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ def extract_events(filepath: str) -> dict[str, str]:

for path in sorted(Path('.').rglob('__init__.py')):
identifier = str(path.parent).replace('/', '.')
if identifier in ['field_friend']:
if identifier in ['field_friend',]:
continue

try:
module = importlib.import_module(identifier)
except Exception:
logging.exception(f'Failed to import {identifier}')
sys.exit(1)
logging.warning(f'Failed to import {identifier}')
continue

doc_path = path.parent.with_suffix('.md')
found_something = False
Expand Down
1 change: 0 additions & 1 deletion mkdocs_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
rosys
mkdocs
mkdocs-material
mdx-include
Expand Down

0 comments on commit 88f38a5

Please sign in to comment.