fix(backup): nettoyer le fichier temporaire en cas d'erreur dans restore (#89)

Wraps temp file operations in try/except to ensure the temporary database file is always cleaned up, even if an exception occurs during write_snapshot or verify_integrity.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Colin Maudry
2026-06-24 17:21:28 +02:00
parent cae0a528f3
commit ded5e66ccc
22 changed files with 6767 additions and 10 deletions
+26
View File
@@ -0,0 +1,26 @@
import dash_ag_grid as dag
import pandas as pd
from dash import Dash, html
df = pd.read_csv(
"https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv"
)
app = Dash()
columnDefs = [
{"field": "country", "filter": True},
{"field": "pop", "headerName": "Population"},
{"field": "lifeExp", "headerName": "Life Expectancy", "filter": True},
]
grid = dag.AgGrid(
id="getting-started-filter",
rowData=df.to_dict("records"),
columnDefs=columnDefs,
)
app.layout = html.Div([grid])
if __name__ == "__main__":
app.run(debug=True)