aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/toolchain.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-17 14:49:48 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-17 14:49:48 +0300
commit4c7e63364f53b940084bc46ca2d29b50dc3aab7f (patch)
tree455f792fb30370d6468f7e1556b6210043e82258 /project/toolchain.py
parentGIANT CLUSTERFUCK OF A COMMIT (diff)
downloadcmake-common-4c7e63364f53b940084bc46ca2d29b50dc3aab7f.tar.gz
cmake-common-4c7e63364f53b940084bc46ca2d29b50dc3aab7f.zip
fix PyLint warnings
Diffstat (limited to 'project/toolchain.py')
-rw-r--r--project/toolchain.py6
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