Skip to content

Autoprofile fails if submodule contains a .py with with an invalid module name. #395

Description

@Erotemic

I saved a file "foo-v1.py" into a utils directory and that broke autoprofiling, as it recognized it as a Python file and tried to import it, but "foo-v1" is not a valid module name. A fix would be checking that the file has valid module name characters. We could also skip importing files that fail to import.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions