From 958bbe61e810e14ba04fdd08610daa00801bb763 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 17 Jan 2024 03:48:26 +0100 Subject: [PATCH] Don't miserably crash when failing to join() the error path when checking manifest schema --- package_linter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 26f86bd..6adcd37 100755 --- a/package_linter.py +++ b/package_linter.py @@ -2004,7 +2004,12 @@ class Manifest(TestSuite): return for error in v.iter_errors(self.manifest): - yield Info("Error validating manifest using schema: in key " + ' > '.join(error.path) + "\n " + error.message) + try: + error_path = ' > '.join(error.path) + except: + error_path = str(error.path) + + yield Info("Error validating manifest using schema: in key " + error_path + "\n " + error.message) ########################################