summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Pena <jpena@redhat.com>2015-09-25 16:23:18 +0200
committerJavier Pena <jpena@redhat.com>2015-09-25 16:25:14 +0200
commit36dd92b1e1e6dcb705ca71cb5ae5fb517c259e4d (patch)
tree7317d4c790d057d29bf71c68ec93cbb19c052d13
parent6ffe7dd4f3b99101d814d8648f22f140d9c1dcdc (diff)
downloadoslosphinx-36dd92b1e1e6dcb705ca71cb5ae5fb517c259e4d.tar.gz
Fix subprocess exception name
https://review.openstack.org/227299 added code using subprocess.CheckedProcessException, which does not exist. From the Python documentation, it should be subprocess.CalledProcessError [1] [1] - https://docs.python.org/2/library/subprocess.html#subprocess.CalledProcessError Change-Id: I0e03f048a33b1b919e38d22038650a633b8ac5fd
-rw-r--r--oslosphinx/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oslosphinx/__init__.py b/oslosphinx/__init__.py
index 24c7f40..d31e81d 100644
--- a/oslosphinx/__init__.py
+++ b/oslosphinx/__init__.py
@@ -28,7 +28,7 @@ def _html_page_context(app, pagename, templatename, context, doctree):
git_remote = subprocess.check_output(
['git', 'config', '--local', '--get', 'remote.origin.url']
)
- except subprocess.CheckedProcessException:
+ except subprocess.CalledProcessError:
_cgit_link = 'unknown'
else:
parsed = urlparse.urlparse(git_remote)