Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle non-existing files in find_block_in_file #1002

Merged
merged 2 commits into from Apr 29, 2019

Conversation

mortenpi
Copy link
Member

Work around the issue reported on Discourse. Still WIP.

Currently find_block_in_file will throw an error if the file does not
exist, which can happen if a Base docstring is being included.
@mortenpi mortenpi added this to the 0.22.4 milestone Apr 22, 2019
@fredrikekre
Copy link
Member

Maybe just Maybe just isfile(source_file) || return nothing?

@mortenpi
Copy link
Member Author

Yep, I think you are right. I feel that we should maybe try to detect the situations that cause this issue, but I don't think is is the right place for the warning message.

@mortenpi mortenpi marked this pull request as ready for review April 28, 2019 07:05
@mortenpi mortenpi merged commit 45fb128 into master Apr 29, 2019
@mortenpi mortenpi deleted the mp/fix-opening-file-error branch April 29, 2019 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants