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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
caucase
Commits
fa62d787
Commit
fa62d787
authored
Jul 11, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: Raise a clearer error message when user key cannot be loaded.
parent
f62a01ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
caucase/client.py
caucase/client.py
+4
-1
No files found.
caucase/client.py
View file @
fa62d787
...
@@ -139,7 +139,10 @@ class CaucaseClient(object):
...
@@ -139,7 +139,10 @@ class CaucaseClient(object):
cadata
=
''
.
join
(
ca_crt_pem_list
).
decode
(
'ascii'
),
cadata
=
''
.
join
(
ca_crt_pem_list
).
decode
(
'ascii'
),
)
)
if
user_key
:
if
user_key
:
ssl_context
.
load_cert_chain
(
user_key
)
try
:
ssl_context
.
load_cert_chain
(
user_key
)
except
ssl
.
SSLError
as
exc
:
raise
ValueError
(
'Failed to load user key: %r'
%
(
exc
,
))
self
.
_https_connection
=
httplib
.
HTTPSConnection
(
self
.
_https_connection
=
httplib
.
HTTPSConnection
(
http_url
.
hostname
,
http_url
.
hostname
,
443
if
port
==
80
else
port
+
1
,
443
if
port
==
80
else
port
+
1
,
...
...
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