Commit 4194182
authored
π fix: catch ImportError for missing sqlite3 C library (#475)
The previous fix caught ModuleNotFoundError, which only covers the case
where the Python sqlite3 module is entirely absent. In minimal Docker
images the Python package exists but the underlying libsqlite3.so.0 is
missing, raising ImportError instead. Since ModuleNotFoundError is a
subclass of ImportError, catching the parent handles both scenarios.1 parent 9b2d086 commit 4194182
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments