Skip to content

[Bug] failure while sanitiainzg exception stack trace in some cases #1739

Closed

Description

@omry

In some scenarios, one of the insepected frames in the stack trace does not have a module, resulting in a failure to print the underlying error.

The following looks like it's resolving it:

++ hydra/_internal/utils.py
@@ -248,6 +248,8 @@
                 while end is not None:
                     frame = end.tb_frame
                     mdl = inspect.getmodule(frame)
+                    if mdl is None:
+                        break
-                     assert mdl is not None

Activity

  1. added
    bugSomething isn't working
    on Jul 30, 2021
  2. added this to the Hydra 1.1.1 milestone on Jul 30, 2021
  3. changed the title [-][Bug][/-] [+][Bug] failure while sanitiainzg exception stack trace in some cases[/+] on Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions