X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0969ca4a46c4a2081be38f7e96a81a74b308c75f..7b153936587e17b9db992a2d8c8b6cfba3ef7209:/src/blackd/__init__.py diff --git a/src/blackd/__init__.py b/src/blackd/__init__.py index 5fdec15..d062303 100644 --- a/src/blackd/__init__.py +++ b/src/blackd/__init__.py @@ -195,7 +195,7 @@ def parse_python_variant_header(value: str) -> Tuple[bool, Set[black.TargetVersi raise InvalidVariantHeader(f"3.{minor} is not supported") versions.add(black.TargetVersion[version_str]) except (KeyError, ValueError): - raise InvalidVariantHeader("expected e.g. '3.7', 'py3.5'") + raise InvalidVariantHeader("expected e.g. '3.7', 'py3.5'") from None return False, versions