Skip to content

Commit

Permalink
Fix formatting for exception raised in C
Browse files Browse the repository at this point in the history
  • Loading branch information
YouJiacheng committed Aug 14, 2022
1 parent 0855917 commit 31cab95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hydra/_internal/utils.py
Expand Up @@ -255,8 +255,7 @@ def run_and_report(func: Any) -> Any:
while end is not None:
frame = end.tb_frame
mdl = inspect.getmodule(frame)
assert mdl is not None
name = mdl.__name__
name = mdl.__name__ if mdl is not None else ''
if name.startswith("omegaconf."):
break
end = end.tb_next
Expand Down

0 comments on commit 31cab95

Please sign in to comment.