Kaynağa Gözat

Small pep8 modification

oz123 10 yıl önce
ebeveyn
işleme
4dd8b11a42
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      pwman/data/drivers/sqlite.py

+ 1 - 1
pwman/data/drivers/sqlite.py

@@ -39,7 +39,7 @@ def check_db_version():
     cur = con.cursor()
     cur.execute("PRAGMA TABLE_INFO(DBVERSION)")
     row = cur.fetchone()
-    if row is None:
+    if not row:
         return "0.3"  # pragma: no cover
     try:
         return row[-2]