Skip to content

Commit

Permalink
Merge pull request #967 from sphinx-contrib/correct-v2-publish-with-u…
Browse files Browse the repository at this point in the history
…nset-metadata

publisher: correct v2 page updates with unset metadata
  • Loading branch information
jdknight committed May 12, 2024
2 parents d4151d3 + 5a1dc81 commit fa233e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinxcontrib/confluencebuilder/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,8 +1518,8 @@ def _update_page(self, page, page_name, data, parent_id=None):
pending_new_labels = []
pending_prop_requests = []
if self.api_mode == 'v2':
orig_metadata = page.get('metadata', None)
update_metadata = update_page.pop('metadata', None)
orig_metadata = page.get('metadata', {})
update_metadata = update_page.pop('metadata', {})

# configure parent page for this page update
#
Expand Down

0 comments on commit fa233e3

Please sign in to comment.