From a9fba7aaa9bafcc769e1112da4b9f58e44f300cd Mon Sep 17 00:00:00 2001 From: David Waroquiers Date: Thu, 16 Nov 2023 12:36:21 +0100 Subject: [PATCH] Alphabetic order of parameters in error message. --- src/qtoolkit/io/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtoolkit/io/base.py b/src/qtoolkit/io/base.py index a533e4b..b4ad46e 100644 --- a/src/qtoolkit/io/base.py +++ b/src/qtoolkit/io/base.py @@ -83,7 +83,7 @@ def generate_header(self, options: dict | QResources | None) -> str: keys = set(options.keys()) extra = keys.difference(template.get_identifiers()) if extra: - msg = f"The following keys are not present in the template: {', '.join(extra)}" + msg = f"The following keys are not present in the template: {', '.join(sorted(extra))}" raise ValueError(msg) unclean_header = template.safe_substitute(options)