Skip to content

Commit edd68a5

Browse files
quick fix for randomly failing build (#13)
1 parent 0a893cd commit edd68a5

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
module(
1515
name = "score_docs_as_code",
16-
version = "0.1.0",
16+
version = "0.1.1",
1717
compatibility_level = 0,
1818
)
1919

src/extensions/score_draw_uml_funcs/__init__.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
from pathlib import Path
3333
from typing import Any
3434

35-
from sphinx.application import Sphinx
36-
from sphinx_needs.logging import get_logger
37-
3835
from score_draw_uml_funcs.helpers import (
3936
gen_header,
4037
gen_interface_element,
@@ -49,6 +46,8 @@
4946
get_module,
5047
get_real_interface_logical,
5148
)
49+
from sphinx.application import Sphinx
50+
from sphinx_needs.logging import get_logger
5251

5352
logger = get_logger(__file__)
5453

@@ -379,6 +378,14 @@ def __call__(
379378
if imcomp := impl_comp.get(iface, {}):
380379
module = get_module(imcomp, all_needs)
381380

381+
# FIXME: sometimes module is empty, then the following code fails
382+
if not module:
383+
logger.info(
384+
f"FIXME: {need['id']}: "
385+
f"Module for interface {iface} -> {imcomp} is empty."
386+
)
387+
continue
388+
382389
if module not in proc_modules:
383390
tmp, link_text, proc_impl_interfaces, proc_used_interfaces = (
384391
draw_module(

0 commit comments

Comments
 (0)