Skip to content

Improve error handling#61

Merged
manuzhang merged 7 commits intomanuzhang:mainfrom
kolibri91:improve-error-handling
Apr 13, 2023
Merged

Improve error handling#61
manuzhang merged 7 commits intomanuzhang:mainfrom
kolibri91:improve-error-handling

Conversation

@kolibri91
Copy link
Copy Markdown
Contributor

@kolibri91 kolibri91 commented Apr 13, 2023

It would be possible to add urls like mentioned in #58 to the exclude list but the plugin still logs a warning so that mkdocs fails in strict mode. That's the mainly the reason why does #58 fail. Within this PR, the error handling is slightly improved.
The log of the warning is moved to another level where the config is known.
With this change, it's possible to check the exclusion list before a warning is logged.

  • Add missing unit-test for extracted method report_invalid_url

Closes #58

@johnthagen
Copy link
Copy Markdown
Contributor

Can confirm this PR fixes #58, thanks!

@kolibri91 kolibri91 marked this pull request as ready for review April 13, 2023 13:27
@kolibri91 kolibri91 requested a review from johnthagen April 13, 2023 13:34
@kolibri91
Copy link
Copy Markdown
Contributor Author

@johnthagen I stripped to code again to keep the actual changes minimal.

@manuzhang manuzhang merged commit 1d6f6db into manuzhang:main Apr 13, 2023
@johnthagen
Copy link
Copy Markdown
Contributor

@manuzhang Would you mind doing a 0.13.0 release? We'd like to use this fix in production.

Thanks!

@manuzhang
Copy link
Copy Markdown
Owner

I made a mistake of not including this in 0.13.0 so the latest is 0.13.1.

@johnthagen
Copy link
Copy Markdown
Contributor

@manuzhang Can confirm 0.13.1 solved our issue. Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relative paths to application from user guide marked invalid

3 participants