summaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-28 18:18:57 -0400
committerBarry Warsaw2012-03-28 18:18:57 -0400
commit7f0c57ca63d13058934e3eb8423ea52075e984ae (patch)
treee195c49d248cc10e1ddf803cebfb9f8c7d074018 /conf.py
parent48dd51f1eb0cf892c002d5691c4cef40c17c8fe9 (diff)
downloadmailman-7f0c57ca63d13058934e3eb8423ea52075e984ae.tar.gz
mailman-7f0c57ca63d13058934e3eb8423ea52075e984ae.tar.zst
mailman-7f0c57ca63d13058934e3eb8423ea52075e984ae.zip
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)