diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-02-06 12:46:07 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-02-06 19:52:35 +0100 |
commit | d9996e65ebfe53fb65c6ef59bfb502baf42297a5 (patch) | |
tree | 3663acfdd0ecdeb76546d419379d7772bb56ee43 /pylint/config | |
parent | 48a4f470f651e01584a6e10a2c125a3bc9296377 (diff) | |
download | pylint-git-d9996e65ebfe53fb65c6ef59bfb502baf42297a5.tar.gz |
[ruff] B904 Raise exceptions with 'raise ... from err'
Diffstat (limited to 'pylint/config')
-rw-r--r-- | pylint/config/argument.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/config/argument.py b/pylint/config/argument.py index 7a03d82b2..b0ff4d5de 100644 --- a/pylint/config/argument.py +++ b/pylint/config/argument.py @@ -105,7 +105,7 @@ def _regex_transformer(value: str) -> Pattern[str]: return re.compile(value) except re.error as e: msg = f"Error in provided regular expression: {value} beginning at index {e.pos}: {e.msg}" - raise argparse.ArgumentTypeError(msg) + raise argparse.ArgumentTypeError(msg) from e def _regexp_csv_transfomer(value: str) -> Sequence[Pattern[str]]: |