Refactor: Resolve flake8 E722 bare except 36/68936/2
authorThanh Ha <zxiiro@gmail.com>
Tue, 5 Oct 2021 16:17:02 +0000 (12:17 -0400)
committerThanh Ha <zxiiro@gmail.com>
Tue, 5 Oct 2021 19:19:23 +0000 (15:19 -0400)
commit533e3cba1deb85c96cbfb16c9a2758a78118d241
tree0622b7dac403efc1eb87e3737ae536467647143d
parent8c6774a5a43b3f56ae1e0c989e7391f43eb43ff5
Refactor: Resolve flake8 E722 bare except

It is considered bad practice to use a bare except as this kind
of except statement can have untended consequences such as disabling
ctrl+c interrupts. At the vary least we should use Exception however
a more specific one would be better. This PR uses the general Exception
to resolve the linter which we can add more specific ones later when
we can appropriately unit test the code.

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I9afcff49f34326d279a63ce972d12f9aa72f18e2
lftools/api/endpoints/gerrit.py
lftools/cli/infofile.py
lftools/cli/ldap_cli.py
lftools/deploy.py