File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 57
57
58
58
try :
59
59
import liblktlang as L
60
- except ImportError :
60
+ except (ImportError , OSError ):
61
+ # ImportError may be raised if liblktlang is not available.
62
+ #
63
+ # OSError may be raised if liblktlang is available, but the underlying
64
+ # dynamic library is missing dependency libraries. This can occur if the
65
+ # library was built with one version of the compiler, and then the compiler
66
+ # installation gets updated. liblktlang has stale library links and fails
67
+ # to load.
68
+ #
69
+ # In both scenarios, assume liblktlang is not available and continue.
61
70
pass
62
71
63
72
Original file line number Diff line number Diff line change 18
18
liblktlang_available = True
19
19
try :
20
20
import liblktlang as L
21
- except ImportError :
21
+ except (ImportError , OSError ):
22
+ # ImportError may be raised if liblktlang is not available.
23
+ #
24
+ # OSError may be raised if liblktlang is available, but the underlying
25
+ # dynamic library is missing dependency libraries. This can occur if the
26
+ # library was built with one version of the compiler, and then the compiler
27
+ # installation gets updated. liblktlang has stale library links and fails
28
+ # to load.
29
+ #
30
+ # In both scenarios, assume liblktlang is not available and continue.
22
31
liblktlang_available = False
23
32
24
33
You can’t perform that action at this time.
0 commit comments