From 653d22cd8c853ecd53d181c997e9bd8a548249de Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Sun, 9 Jul 2023 20:47:54 -0500 Subject: [PATCH] bug fix: init function for fields not working --- transport/sql.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transport/sql.py b/transport/sql.py index 0250553..38a1f7e 100644 --- a/transport/sql.py +++ b/transport/sql.py @@ -239,6 +239,8 @@ class SQLWriter(SQLRW,Writer): try: table = self._tablename(self.table) self.fields = pd.read_sql_query("SELECT * FROM :table LIMIT 1".replace(":table",table),self.conn).columns.tolist() + except Exception as e: + pass finally: pass else: