Skip to content

Commit 032a400

Browse files
committed
fix: Don't crash when log level can't be matched in typedoc's output
1 parent fef7f54 commit 032a400

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/griffe_typedoc/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def load(typedoc_command: str | list[str], working_directory: str = ".") -> Proj
3535
while True:
3636
if line := process.stdout.readline().strip(): # type: ignore[union-attr]
3737
level, line = line.split(" ", 1)
38-
level = re.search(r"\[(\w+)\]", level).group(1)
38+
level = match.group(1) if (match := re.search(r"\[(\w+)\]", level)) else "INFO"
3939
getattr(logger, level)(_double_brackets(line))
4040
else:
4141
break

0 commit comments

Comments
 (0)