From 209f854c64815ce999d041fa66dd34e451c97477 Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Fri, 12 Jun 2020 00:54:49 +0300 Subject: [PATCH] Fix exception cause in config.py --- src/pydocstyle/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydocstyle/config.py b/src/pydocstyle/config.py index e1fbc0a9..60d11f00 100644 --- a/src/pydocstyle/config.py +++ b/src/pydocstyle/config.py @@ -463,7 +463,7 @@ def _expand_error_codes(code_parts): 'known errors: %s', part) expanded_codes.update(codes_to_add) except TypeError as e: - raise IllegalConfiguration(e) + raise IllegalConfiguration(e) from e return expanded_codes