소스 검색

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