chore: better raise (#1335)

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

Test Plan:
This commit is contained in:
ehhuang 2025-02-28 16:41:20 -08:00 committed by GitHub
parent 7ad7e3b970
commit 2faee24873
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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