Commit d6fb5c0
committed
Include all LoadLibrary() failures in exception chain
If libopenslide.so.1 fails to load, we want to report that exception too,
not just the fact that libopenslide.so.0 doesn't exist. Make try_load()
recursive rather than iterative, allowing Python's exception chaining to
handle this automatically.
Reported-by: Govinda Kamath <[email protected]>
Signed-off-by: Benjamin Gilbert <[email protected]>1 parent 343d435 commit d6fb5c0
1 file changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
0 commit comments