I guess only OSError we care about?

This commit is contained in:
meejah 2020-12-20 22:19:42 -07:00
parent d267bb3ee1
commit 24ac2c6994

View File

@ -196,7 +196,7 @@ def sign(ctx, name, expiry_days):
while f is None:
try:
f = fp.child("{}.cert.{}".format(name, next_serial)).create()
except Exception:
except OSError:
f = None
next_serial += 1
with f: