def init_dbs(sqls): # graceful initialization tries to create new tables as a test to see if this is a new DB or not for s in sqls: with suppress(sqlite3.OperationalError): cursor.execute(s)