diff options
| author | Barry Warsaw | 2012-03-28 18:14:40 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-28 18:14:40 -0400 |
| commit | 48dd51f1eb0cf892c002d5691c4cef40c17c8fe9 (patch) | |
| tree | b24102d75c866905a3f955e39516a2d51a6a56a0 /conf.py | |
| parent | c2f3863d2a7b49348d57ac436ad023f1e99366d6 (diff) | |
| parent | cdf9b826cbf1cc741366dd0bbe5c732e57313a7b (diff) | |
| download | mailman-48dd51f1eb0cf892c002d5691c4cef40c17c8fe9.tar.gz mailman-48dd51f1eb0cf892c002d5691c4cef40c17c8fe9.tar.zst mailman-48dd51f1eb0cf892c002d5691c4cef40c17c8fe9.zip | |
Diffstat (limited to 'conf.py')
| -rw-r--r-- | conf.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -224,13 +224,14 @@ def index_html(): import errno cwd = os.getcwd() try: - os.makedirs('build/sphinx/html') + try: + os.makedirs('build/sphinx/html') + except OSError as error: + if error.errno != errno.EEXIST: + raise os.chdir('build/sphinx/html') 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) |
