diff options
| author | Pavlo Kapyshin <PavloKapyshin@users.noreply.github.com> | 2017-02-24 16:46:31 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-24 09:46:31 -0500 |
| commit | b6fbf3e8e56b34fdc4367d582bbcb036e4aa2972 (patch) | |
| tree | e8f9d952f29d683ab40eb44801cb5e3fb9b352bb /django | |
| parent | 508b5debfb16843a8443ebac82c1fb91f15da687 (diff) | |
Fixed #27879 -- Fixed crash if enclosures aren't provided to Atom1Feed.add_item().
Regression in 75cf9b5ac031feb8f94271c9906157c921a14520
Diffstat (limited to 'django')
| -rw-r--r-- | django/utils/feedgenerator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/feedgenerator.py b/django/utils/feedgenerator.py index 9dec126941..fa5c1f03ba 100644 --- a/django/utils/feedgenerator.py +++ b/django/utils/feedgenerator.py @@ -137,7 +137,7 @@ class SyndicationFeed: 'comments': to_str(comments), 'unique_id': to_str(unique_id), 'unique_id_is_permalink': unique_id_is_permalink, - 'enclosures': enclosures, + 'enclosures': enclosures or (), 'categories': categories or (), 'item_copyright': to_str(item_copyright), 'ttl': ttl, |
