Commit 4966706d authored by Vincent Pelletier's avatar Vincent Pelletier

caucase.cli: Silence pylint warning.

parent fe081b78
......@@ -162,13 +162,13 @@ class CLICaucaseClient(object):
crt_id = int(crt_id)
try:
crt_pem = self._client.getCertificate(crt_id)
except CaucaseError as e:
if e.args[0] != http_client.NOT_FOUND:
except CaucaseError as exception:
if exception.args[0] != http_client.NOT_FOUND:
raise
try:
self._client.getCertificateSigningRequest(crt_id)
except CaucaseError as e:
if e.args[0] != http_client.NOT_FOUND:
except CaucaseError as csr_exception:
if csr_exception.args[0] != http_client.NOT_FOUND:
raise
self._print(crt_id, 'not found - maybe CSR was rejected ?')
error = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment