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

caucase.cli: Silence pylint warning.

parent fe081b78
...@@ -162,13 +162,13 @@ class CLICaucaseClient(object): ...@@ -162,13 +162,13 @@ class CLICaucaseClient(object):
crt_id = int(crt_id) crt_id = int(crt_id)
try: try:
crt_pem = self._client.getCertificate(crt_id) crt_pem = self._client.getCertificate(crt_id)
except CaucaseError as e: except CaucaseError as exception:
if e.args[0] != http_client.NOT_FOUND: if exception.args[0] != http_client.NOT_FOUND:
raise raise
try: try:
self._client.getCertificateSigningRequest(crt_id) self._client.getCertificateSigningRequest(crt_id)
except CaucaseError as e: except CaucaseError as csr_exception:
if e.args[0] != http_client.NOT_FOUND: if csr_exception.args[0] != http_client.NOT_FOUND:
raise raise
self._print(crt_id, 'not found - maybe CSR was rejected ?') self._print(crt_id, 'not found - maybe CSR was rejected ?')
error = True 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