瀏覽代碼

Update sqlite3.py

MoeClub 3 年之前
父節點
當前提交
19f2593d34
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sqlite3.py

+ 1 - 1
sqlite3.py

@@ -62,7 +62,7 @@ class SQLite3:
                 create_tbl = '''create table %s %s''' % (self.table, tbl)
                 await self.execute(create_tbl, True)
         except Exception as e:
-            if not 'already exists' in str(e):
+            if 'already exists' not in str(e):
                 print("init:", e)
 
 if __name__ == "__main__":