From 10183a6ca09e9ea077eef6530595c60e979ffd8a Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 17 May 2015 15:56:10 +0900 Subject: [PATCH] Fix a crash when setting up extensions which do not support metadata --- CHANGES | 6 ++++-- sphinx/application.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index e3dfcac35..1beafe60f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,5 @@ -Release 1.3.2 (releaseed May 21, 2015) -====================================== +Release 1.3.2 (in development) +============================== Bugs fixed ---------- @@ -40,6 +40,7 @@ Bugs fixed Thanks to Jens Hedegaard Nielsen. * #1781: Setting `html_domain_indices` to a list raises a type check warnings. + Release 1.3 (released Mar 10, 2015) =================================== @@ -88,6 +89,7 @@ Documentation * #1651: Add ``vartype`` field descritpion for python domain. + Release 1.3b3 (released Feb 24, 2015) ===================================== diff --git a/sphinx/application.py b/sphinx/application.py index 5d2fb65f8..0aefc7202 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -453,7 +453,7 @@ class Sphinx(object): try: if not ext_meta.get('version'): ext_meta['version'] = 'unknown version' - except: + except Exception: ext_meta = {'version': 'unknown version'} self._extensions[extension] = mod self._extension_metadata[extension] = ext_meta