Skip to content

exception prevents command make.html from importing module 'main' from module 'crawler'  #11

Description

@mwyngloddwr

I had to modify one line in 'pycon-sphinx-tutorial/src/crawler/main.py' to deal with an import exception:
'from utils import log, shouldignore'. To import the module 'main' so that Crawler Python API is displayed correctly one could either comment out the line or put it inside a try/except block:

try:
from utils import log, shouldignore
except ImportError:
pass

The command 'make html' now runs without WARNING and the page displays as intended, 'tho this will presumably affect the log and shouldignore flags elsewhere in the tutorial.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions