diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7476c20776..99636e4613 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: python -m pip install . - name: Run tests run: | - py.test tests/ + py.test --show-capture=stderr tests/ - name: Run nikola run: | nikola diff --git a/nikola/plugins/task/galleries.py b/nikola/plugins/task/galleries.py index 9e7b53c4ce..54d98dbe3e 100644 --- a/nikola/plugins/task/galleries.py +++ b/nikola/plugins/task/galleries.py @@ -33,6 +33,7 @@ import mimetypes import os import pathlib +import sys from collections import OrderedDict from urllib.parse import urljoin @@ -758,7 +759,13 @@ def forward_slashes(path): mimetypes.guess_type(img)[0] ), } - items.append(rss.RSSItem(**args)) + print(f'{args=}', file=sys.stderr) + print(f'guid={vars(args["guid"])}', file=sys.stderr) + print(f'enclosure={vars(args["enclosure"])}', file=sys.stderr) + item = rss.RSSItem(**args) + print(f'item={vars(item)}', file=sys.stderr) + print('', file=sys.stderr) + items.append(item) rss_obj = rss.RSS2( title=title, link=make_url(permalink),