Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
4966706d
Commit
4966706d
authored
Jul 07, 2022
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caucase.cli: Silence pylint warning.
parent
fe081b78
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
caucase/cli.py
caucase/cli.py
+4
-4
No files found.
caucase/cli.py
View file @
4966706d
...
@@ -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
e
xception
:
if
e
.
args
[
0
]
!=
http_client
.
NOT_FOUND
:
if
e
xception
.
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment