diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-05-09 10:22:53 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-05-09 10:22:53 +0000 |
commit | 90e7b260160836ba0bfca53a9ccdda4ad72caa28 (patch) | |
tree | cf5b7392d3c564ee00f0c58e45d39c6627446329 /doc | |
parent | 80d8b18ebf2ebfe2878f9f0d9f33ad9aa9bc71bd (diff) | |
parent | 903ae618bb3979ef39226c3f2ee1168c7638ba57 (diff) | |
download | oslo-messaging-90e7b260160836ba0bfca53a9ccdda4ad72caa28.tar.gz |
Merge "Don't set html_last_updated_fmt without git"
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/conf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index f5587ec..6008861 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -3,7 +3,7 @@ import os import subprocess import sys -import time +import warnings sys.path.insert(0, os.path.abspath('../..')) # -- General configuration ---------------------------------------------------- @@ -61,7 +61,8 @@ try: html_last_updated_fmt = subprocess.Popen( git_cmd, stdout=subprocess.PIPE).communicate()[0] except Exception: - html_last_updated_fmt = time.ctime() + warnings.warn('Cannot get last updated time from git repository. ' + 'Not setting "html_last_updated_fmt".') # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, documentclass |