浏览代码

Dont except an exception that won't be raised

oz123 10 年之前
父节点
当前提交
d52f7753b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pwman/data/drivers/sqlite.py

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

@@ -110,7 +110,7 @@ class SQLite(Database):
                           self.dbformat)
         try:
             self._con.commit()
-        except DatabaseException as e:  # pragma: no cover
+        except Exception as e:  # pragma: no cover
             self._con.rollback()
             raise e