summaryrefslogtreecommitdiffstatshomepage
path: root/project/toolset.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-03-30 10:18:37 +0200
committerEgor Tensin <egor@tensin.name>2026-03-30 10:18:37 +0200
commitd4ea34cc8191f7e669ff4f4166dc57723c4d7b90 (patch)
tree6ca9d65b54aab3c90d5745830b1f1500f0c60298 /project/toolset.py
parentexamples: finalize the removal of common.cmake (diff)
downloadcmake-common-d4ea34cc8191f7e669ff4f4166dc57723c4d7b90.tar.gz
cmake-common-d4ea34cc8191f7e669ff4f4166dc57723c4d7b90.zip
fix PyLint warnings
Diffstat (limited to 'project/toolset.py')
-rw-r--r--project/toolset.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/project/toolset.py b/project/toolset.py
index 272cebe..2a9d797 100644
--- a/project/toolset.py
+++ b/project/toolset.py
@@ -79,8 +79,8 @@ class MSVCVersion(Enum):
def to_boost_msvc_version(self):
try:
numeric = int(self.value)
- except ValueError:
- raise RuntimeError(f'what? MSVC versions are supposed to be integers: {self.value}')
+ except ValueError as e:
+ raise RuntimeError(f'what? MSVC versions are supposed to be integers: {self.value}') from e
numeric = Decimal(numeric) / 10
numeric = numeric.quantize(Decimal('1.0'))
return str(numeric)