diff --git a/conservancy_beancount/tools/extract_odf_links.py b/conservancy_beancount/tools/extract_odf_links.py index 71b0ca257e4075c4d7af38d9e3780efa9e5706a6..3255025daa0e8551b726c35a29c1dd0b6aad0685 100644 --- a/conservancy_beancount/tools/extract_odf_links.py +++ b/conservancy_beancount/tools/extract_odf_links.py @@ -173,7 +173,7 @@ def main(arglist: Optional[Sequence[str]]=None, elif path not in seen: seen.add(path) if not path.exists(): - logger.warning("path %s not found", path) + logger.warning("link path not found: %s", path) print(path, end=args.delimiter, file=stdout) returncode = 0 diff --git a/setup.py b/setup.py index a9d580afb7009400da6c7d93cc43b7c28ab58f21..567db902f2efd589cf4a56b9dded3bb3978814d7 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup setup( name='conservancy_beancount', description="Plugin, library, and reports for reading Conservancy's books", - version='1.9.2', + version='1.9.3', author='Software Freedom Conservancy', author_email='info@sfconservancy.org', license='GNU AGPLv3+', diff --git a/tests/test_extract_odf_links.py b/tests/test_extract_odf_links.py index 1e4f2b8801f92b80a4622f963f6750c8ed6d7f28..e7dea3ae4488fb63566535d6c500886ace2f23b4 100644 --- a/tests/test_extract_odf_links.py +++ b/tests/test_extract_odf_links.py @@ -26,6 +26,7 @@ from . import testutil from conservancy_beancount.tools import extract_odf_links SRC_PATH = testutil.test_path('repository/LinksReport.ods') +BAD_PATH_S = str(testutil.test_path('repository/Projects/Bad Link.txt')) INCLUDED_FILE_LINKS = { Path('/repository/Projects/project-data.yml'), @@ -63,7 +64,8 @@ def test_extract_file_links(arglist, sep, caplog): assert caplog.records assert any( log.levelname == 'WARNING' - and log.message.endswith('/Bad Link.txt not found') + and log.message.startswith('link path not found: ') + and log.message.endswith(BAD_PATH_S) for log in caplog.records )