summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2019-02-19 00:13:54 +0530
committerChandan Singh <chandan@chandansingh.net>2019-02-18 18:59:31 +0000
commit00b86b193e588ab0c1d57ca685cff8b7e102cf86 (patch)
tree0dfd259d9c5ebb3b116d935bf97e95ac51935d6e
parentde70f8c02769f9a63898126589fd0ef7b8f8ce7c (diff)
downloadbuildstream-00b86b193e588ab0c1d57ca685cff8b7e102cf86.tar.gz
doc/badges.py: Fix catching of CalledProcessError
Since `CalledProcessError` is defined by the `subprocess` module, it must be caught as `subprocess.CalledProcessError`, and not as simply `CalledProcessError`.
-rwxr-xr-xdoc/badges.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/badges.py b/doc/badges.py
index 5e20dc7f9..247b0e8e8 100755
--- a/doc/badges.py
+++ b/doc/badges.py
@@ -96,7 +96,7 @@ def parse_tag(tag):
def guess_version(release):
try:
tags_output = subprocess.check_output(['git', 'tag'])
- except CalledProcessError:
+ except subprocess.CalledProcessError:
return (0, 0, 0)
# Parse the `git tag` output into a list of integer tuples