From f5d1cad324be721f87fa87a416aa70701e75dcca Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Wed, 15 May 2024 21:49:07 -0400 Subject: [PATCH] Fix error path for search_copyright_information. (#491) Callers now expect it to return a 4-tuple, but in the case that there was no data it was only returning a 2-tuple. Signed-off-by: Chris Lalancette --- ament_copyright/ament_copyright/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ament_copyright/ament_copyright/parser.py b/ament_copyright/ament_copyright/parser.py index c77a74b1..510b78dc 100644 --- a/ament_copyright/ament_copyright/parser.py +++ b/ament_copyright/ament_copyright/parser.py @@ -182,7 +182,7 @@ def determine_filetype(path): def search_copyright_information(content): if content is None: - return [], content + return [], [], [], content # regex for matching years or year ranges (yyyy-yyyy) separated by colons year = r'\d{4}' year_range = '%s-%s' % (year, year)