diff --git a/openstackdocstheme/page_context.py b/openstackdocstheme/page_context.py index 945bbff6..75092967 100644 --- a/openstackdocstheme/page_context.py +++ b/openstackdocstheme/page_context.py @@ -35,7 +35,11 @@ def _get_last_updated_file(src_file): '--', src_file, ] ).decode('utf-8').strip() - except (subprocess.CalledProcessError, OSError) as err: + # NOTE: we catch any exception here (instead of + # subprocess.CalledProcessError and OSError) because some projects (eg. + # neutron) do import eventlet in docs/source/conf.py which will patch + # the subprocess module and with that, the exception is not catched + except Exception as err: LOG.info( '[openstackdocstheme] Could not get modification time of %s: %s', src_file, err)