]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/prometheus: catch ImportError
authorKefu Chai <kchai@redhat.com>
Tue, 24 Nov 2020 04:03:20 +0000 (12:03 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 25 Nov 2020 09:41:00 +0000 (17:41 +0800)
commite700ed807c4b2a43a77b7e13939e1e04a8ac856b
treefb30cc26661a416e993e69506a81fd16200f451b
parentc26b370b7e9bbe55f44ad5d59163258f0a64e361
pybind/mgr/prometheus: catch ImportError

silences following warning from flake8

E722 do not use bare 'except'

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/prometheus/module.py