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/configuration.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/configuration.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/project/configuration.py b/project/configuration.py index 50489fa..4b25c6e 100644 --- a/project/configuration.py +++ b/project/configuration.py @@ -16,7 +16,7 @@ class Configuration(Enum): RELEASE = 'Release' def __str__(self): - return self.value + return str(self.value) @staticmethod def all(): @@ -26,8 +26,8 @@ class Configuration(Enum): def parse(s): try: return Configuration(s) - except ValueError: - raise argparse.ArgumentTypeError(f'invalid configuration: {s}') + except ValueError as e: + raise argparse.ArgumentTypeError(f'invalid configuration: {s}') from e def to_boost_variant(self): '''Roughly maps CMake's CMAKE_BUILD_TYPE to Boost's variant. |