diff options
| author | Barry Warsaw | 2012-03-28 18:18:57 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-28 18:18:57 -0400 |
| commit | 7f0c57ca63d13058934e3eb8423ea52075e984ae (patch) | |
| tree | e195c49d248cc10e1ddf803cebfb9f8c7d074018 /conf.py | |
| parent | 48dd51f1eb0cf892c002d5691c4cef40c17c8fe9 (diff) | |
| download | mailman-7f0c57ca63d13058934e3eb8423ea52075e984ae.tar.gz mailman-7f0c57ca63d13058934e3eb8423ea52075e984ae.tar.zst mailman-7f0c57ca63d13058934e3eb8423ea52075e984ae.zip | |
Diffstat (limited to 'conf.py')
| -rw-r--r-- | conf.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |
