Commit f44d070
committed
core: raise clear error when OpenSSL library is not found
On Windows, ctypes.util.find_library() can return None for all
candidate library names. Passing None to LoadLibrary() raises a
confusing TypeError. Check for None first and raise an EnvironmentError
with an actionable message instead.
Fixes #3161 parent 91e334d commit f44d070
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
30 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
0 commit comments