[Bf-docboard-svn] bf-manual: [7220] trunk/blender_docs/manual/conf.py: Config: use ModuleNotFoundError

Campbell Barton noreply at blender.org
Mon Oct 12 07:16:48 CEST 2020


Revision: 7220
          https://developer.blender.org/rBM7220
Author:   campbellbarton
Date:     2020-10-12 07:16:47 +0200 (Mon, 12 Oct 2020)
Log Message:
-----------
Config: use ModuleNotFoundError

This is more spesific as we only want to throw an error if the module is missing.

Modified Paths:
--------------
    trunk/blender_docs/manual/conf.py

Modified: trunk/blender_docs/manual/conf.py
===================================================================
--- trunk/blender_docs/manual/conf.py	2020-10-12 04:13:19 UTC (rev 7219)
+++ trunk/blender_docs/manual/conf.py	2020-10-12 05:16:47 UTC (rev 7220)
@@ -181,7 +181,7 @@
     import sphinx_rtd_theme
     html_theme = "sphinx_rtd_theme"
     del sphinx_rtd_theme
-except ImportError:
+except ModuleNotFoundError:
     pass
 
 



More information about the Bf-docboard-svn mailing list