diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-17 14:49:48 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-01-17 14:49:48 +0300 |
commit | 4c7e63364f53b940084bc46ca2d29b50dc3aab7f (patch) | |
tree | 455f792fb30370d6468f7e1556b6210043e82258 /project/toolchain.py | |
parent | GIANT CLUSTERFUCK OF A COMMIT (diff) | |
download | cmake-common-4c7e63364f53b940084bc46ca2d29b50dc3aab7f.tar.gz cmake-common-4c7e63364f53b940084bc46ca2d29b50dc3aab7f.zip |
fix PyLint warnings
Diffstat (limited to '')
-rw-r--r-- | project/toolchain.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/project/toolchain.py b/project/toolchain.py index d931c6b..4d10872 100644 --- a/project/toolchain.py +++ b/project/toolchain.py @@ -31,7 +31,7 @@ class ToolchainType(Enum): CLANG_CL = 'clang-cl' def __str__(self): - return self.value + return str(self.value) @staticmethod def all(): @@ -41,5 +41,5 @@ class ToolchainType(Enum): def parse(s): try: return ToolchainType(s) - except ValueError: - raise argparse.ArgumentTypeError(f'invalid toolset: {s}') + except ValueError as e: + raise argparse.ArgumentTypeError(f'invalid toolset: {s}') from e |