Spaces:
Sleeping
Sleeping
File size: 326 Bytes
35d761c | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 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}")
|