Commit 3e21188
committed
fix(alembic): narrow enum-import guard to ModuleNotFoundError
Catching ImportError also swallowed genuine import-time failures (e.g.
version mismatches), silently disabling enum autogenerate support even
when alembic-postgresql-enum is installed. Catch ModuleNotFoundError so
a missing package is handled quietly while real errors surface.
Addresses review feedback on litestar-org#774.1 parent 66925ef commit 3e21188
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- advanced_alchemy/alembic/templates
- asyncio
- sync
- tests/integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
0 commit comments