From 43b619b2c638cd94900b8477a642f04a649b4205 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 14 Oct 2019 19:09:26 -0400 Subject: [PATCH] release script fix for PRs with null body --- lbry/scripts/release.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/scripts/release.py b/lbry/scripts/release.py index 08b799223..8854239d1 100644 --- a/lbry/scripts/release.py +++ b/lbry/scripts/release.py @@ -141,9 +141,9 @@ def release(args): type_label = get_label(pr, 'type') if area_labels and type_label: for area_name in area_labels: - for incompat in get_backwards_incompatible(pr.body): + for incompat in get_backwards_incompatible(pr.body or ""): incompats.append(f' * [{area_name}] {incompat.strip()} ({pr.html_url})') - for release_text in get_release_text(pr.body): + for release_text in get_release_text(pr.body or ""): release_texts.append(f'{release_text.strip()} ({pr.html_url})') if type_label != 'fixup': area = areas.setdefault(area_name, [])