Commit 3018874
committed
fix: re-export exception classes from generated module
ariadne-codegen copies base_client.py into generated/, creating
duplicate class definitions. The generated client raises exceptions
from the generated module, so consumers must catch those exact classes.
Re-exporting from the package __init__.py ensures that
\`from deezer_python_gql import GraphQLClientGraphQLMultiError\`
gives the same class identity the client actually raises.1 parent 22cf4c4 commit 3018874
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments