simonw/sqlite-utils
Misleading progress bar against utf-16-le CSV input
Aberta
#439 aberto em 27 de mai. de 2022
bughelp wanted
Métricas do repositório
- Stars
- (2.065 estrelas)
- Métricas de merge de PR
- (Mesclagem média 9h 52m) (7 fundiu PRs em 30d)
Description
The program crashes without any error.
wget "https://artsdatabanken.no/Fab2018/api/export/csv"
sqlite-utils create-database test.db
sqlite-utils insert --csv --delimiter ";" --encoding "utf-16-le" test test.db csv
[------------------------------------] 0%
[#################-------------------] 49% 00:00:01
I would like to highlight various issues:
- sqlite-utils catches exceptions without printing the stacktrace and/or reraising the exception, so there is no easy way to use
pdbor similar to debug the program, solution: add a debug option - Silent crash: this is related to (1.), and it happens when there is a catch-all mechanism; solution: let the program fail.