From 00b86b193e588ab0c1d57ca685cff8b7e102cf86 Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Tue, 19 Feb 2019 00:13:54 +0530 Subject: 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`. --- doc/badges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1