summaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/conf.py b/conf.py
index db7b868df..d0d8589dd 100644
--- a/conf.py
+++ b/conf.py
@@ -230,8 +230,12 @@ def index_html():
if error.errno != errno.EEXIST:
raise
os.chdir('build/sphinx/html')
- os.symlink('README.html', 'index.html')
- print 'index.html -> README.html'
+ try:
+ os.symlink('README.html', 'index.html')
+ print 'index.html -> README.html'
+ except OSError as error:
+ if error.errno != errno.EEXIST:
+ raise
finally:
os.chdir(cwd)