From 53b2cb59da25d4f3f7d376008d3bea39fdd9d51c Mon Sep 17 00:00:00 2001 From: neelasha23 Date: Tue, 13 Feb 2024 21:14:36 +0530 Subject: [PATCH] Lint --- src/pkgmt/fail_if_invalid_changelog.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pkgmt/fail_if_invalid_changelog.py b/src/pkgmt/fail_if_invalid_changelog.py index 328e621..3c3431a 100644 --- a/src/pkgmt/fail_if_invalid_changelog.py +++ b/src/pkgmt/fail_if_invalid_changelog.py @@ -4,7 +4,6 @@ from pathlib import Path from pkgmt import changelog -from pkgmt.exceptions import ProjectValidationError def latest_changelog_header(base_branch): @@ -80,9 +79,9 @@ def check_modified(base_branch, include_path, debug=False): ) return 1 elif extracted_text[0].strip() == "": - print(f"You have added an empty entry") + print(f"You have added an empty entry: {line}") return 1 - except subprocess.CalledProcessError as e: + except subprocess.CalledProcessError: pass return 0