From 47342bfaee8b27745c3f5411023aac56917b355b Mon Sep 17 00:00:00 2001 From: tomc271 <58003025+tomc271@users.noreply.github.com> Date: Mon, 21 Aug 2023 17:42:52 +0100 Subject: [PATCH] No need to catch real errors. [skip ci] Co-authored-by: Peter Hill --- bin/update_citations.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/update_citations.py b/bin/update_citations.py index 99f3e2c11c..0b35edc87b 100644 --- a/bin/update_citations.py +++ b/bin/update_citations.py @@ -31,10 +31,7 @@ def get_authors_from_git(): def parse_cff_file(filename): with open(filename, "r", encoding='UTF-8') as stream: - try: - return yaml.safe_load(stream) - except yaml.YAMLError as exc: - print(exc) + return yaml.safe_load(stream) def get_authors_from_cff_file():