From bccc3e747b125433b92be779e9548586ae5a05ef Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 27 Jun 2022 17:30:17 +0200 Subject: [PATCH] nixos/make-options-doc: Fix exception handler for arity /= 1 methods --- nixos/lib/make-options-doc/mergeJSON.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/lib/make-options-doc/mergeJSON.py b/nixos/lib/make-options-doc/mergeJSON.py index 9510b1e59a20..7010a8873d5b 100644 --- a/nixos/lib/make-options-doc/mergeJSON.py +++ b/nixos/lib/make-options-doc/mergeJSON.py @@ -57,8 +57,8 @@ def convertMD(options: Dict[str, Any]) -> str: try: return super(Renderer, self)._get_method(name) except AttributeError: - def not_supported(children, **kwargs): - raise NotImplementedError("md node not supported yet", name, children, **kwargs) + def not_supported(*args, **kwargs): + raise NotImplementedError("md node not supported yet", name, args, **kwargs) return not_supported def text(self, text):