fix: Use checked exception for ValueError

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Luca Simone
2023-11-16 10:58:35 +01:00
committed by GitHub
parent 3fae5cbd8d
commit eae30c32a2

View File

@ -205,7 +205,7 @@ class BitbucketServerProvider(GitProvider):
try:
for comment in self.temp_comments:
self.remove_comment(comment)
except Exception as e:
except ValueError as e:
get_logger().exception(f"Failed to remove temp comments, error: {e}")
def remove_comment(self, comment):