cephadm: do not use bare 'except' (E722)

Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
Michael Fritch 2021-02-18 15:25:27 -07:00
parent 6237df7527
commit 8eb4c38f10
No known key found for this signature in database
GPG Key ID: 75F3EB2E80A03B7F
2 changed files with 1 additions and 2 deletions

View File

@ -4056,7 +4056,7 @@ def registry_login(ctx: CephadmContext, url, username, password):
out, _, _ = call_throws(ctx, cmd)
if 'podman' in container_path:
os.chmod('/etc/ceph/podman-auth.json', 0o600)
except:
except Exception:
raise Error("Failed to login to custom registry @ %s as %s with given password" % (ctx.registry_url, ctx.registry_username))
##################################

View File

@ -6,7 +6,6 @@ skipsdist=true
max-line-length = 100
ignore =
E501,
E722,
E741,
F401,
F841,