ai-bookkeeper-backend / get_error.py
Pushkar Pandey
fix: move backend files to root for HuggingFace
61ec498
Raw
History Blame Contribute Delete
326 Bytes
import sqlite3
import json
try:
conn = sqlite3.connect('database.db')
cursor = conn.cursor()
cursor.execute("SELECT status, description FROM journal_entries WHERE status='error' LIMIT 1")
row = cursor.fetchone()
print(f"Error Row: {row}")
except Exception as e:
print(f"Failed to query sqlite: {e}")