mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
cephadm: do not use bare 'except' (E722)
Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
parent
6237df7527
commit
8eb4c38f10
@ -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))
|
||||
|
||||
##################################
|
||||
|
@ -6,7 +6,6 @@ skipsdist=true
|
||||
max-line-length = 100
|
||||
ignore =
|
||||
E501,
|
||||
E722,
|
||||
E741,
|
||||
F401,
|
||||
F841,
|
||||
|
Loading…
Reference in New Issue
Block a user