chore: better raise

Summary:
addresses https://github.com/meta-llama/llama-stack/pull/1282#discussion_r1972546802

Test Plan:
This commit is contained in:
Eric Huang 2025-02-28 16:01:52 -08:00
parent 6fa257b475
commit a5f3645393

View file

@ -28,7 +28,7 @@ class SQLiteSpanProcessor(SpanProcessor):
self._local.conn = sqlite3.connect(self.conn_string) self._local.conn = sqlite3.connect(self.conn_string)
except Exception as e: except Exception as e:
print(f"Error connecting to SQLite database: {e}") print(f"Error connecting to SQLite database: {e}")
raise e raise
return self._local.conn return self._local.conn
def setup_database(self): def setup_database(self):