nixos/make-options-doc: Fix exception handler for arity /= 1 methods

This commit is contained in:
Robert Hensing 2022-06-27 17:30:17 +02:00
parent aff2dbbc82
commit bccc3e747b

View file

@ -57,8 +57,8 @@ def convertMD(options: Dict[str, Any]) -> str:
try: try:
return super(Renderer, self)._get_method(name) return super(Renderer, self)._get_method(name)
except AttributeError: except AttributeError:
def not_supported(children, **kwargs): def not_supported(*args, **kwargs):
raise NotImplementedError("md node not supported yet", name, children, **kwargs) raise NotImplementedError("md node not supported yet", name, args, **kwargs)
return not_supported return not_supported
def text(self, text): def text(self, text):