aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/linkage.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/linkage.py
parentGIANT CLUSTERFUCK OF A COMMIT (diff)
downloadcmake-common-4c7e63364f53b940084bc46ca2d29b50dc3aab7f.tar.gz
cmake-common-4c7e63364f53b940084bc46ca2d29b50dc3aab7f.zip
fix PyLint warnings
Diffstat (limited to 'project/linkage.py')
-rw-r--r--project/linkage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/project/linkage.py b/project/linkage.py
index 7019049..ffef071 100644
--- a/project/linkage.py
+++ b/project/linkage.py
@@ -12,7 +12,7 @@ class Linkage(Enum):
SHARED = 'shared'
def __str__(self):
- return self.value
+ return str(self.value)
@staticmethod
def all():
@@ -22,5 +22,5 @@ class Linkage(Enum):
def parse(s):
try:
return Linkage(s)
- except ValueError:
- raise argparse.ArgumentTypeError(f'invalid linkage: {s}')
+ except ValueError as e:
+ raise argparse.ArgumentTypeError(f'invalid linkage: {s}') from e