Sfoglia il codice sorgente

bug fix: init function for fields not working

Steve Nyemba 2 anni fa
parent
commit
653d22cd8c
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      transport/sql.py

+ 2 - 0
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: