diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 22:17:31 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 22:17:31 +0100 |
commit | 188e43f3fa9579f9ac5fb6d4d2e56e11cbd2b940 (patch) | |
tree | 8e90913fc9606efd79cd161129082319cb1f2581 /newspipe/controllers | |
parent | Added SQLite configuration file. (diff) | |
download | newspipe-188e43f3fa9579f9ac5fb6d4d2e56e11cbd2b940.tar.gz newspipe-188e43f3fa9579f9ac5fb6d4d2e56e11cbd2b940.tar.bz2 newspipe-188e43f3fa9579f9ac5fb6d4d2e56e11cbd2b940.zip |
removed unused variable
Diffstat (limited to 'newspipe/controllers')
-rw-r--r-- | newspipe/controllers/abstract.py | 2 | ||||
-rw-r--r-- | newspipe/controllers/article.py | 1 | ||||
-rw-r--r-- | newspipe/controllers/bookmark.py | 1 | ||||
-rw-r--r-- | newspipe/controllers/tag.py | 1 |
4 files changed, 1 insertions, 4 deletions
diff --git a/newspipe/controllers/abstract.py b/newspipe/controllers/abstract.py index a699afd0..32d07170 100644 --- a/newspipe/controllers/abstract.py +++ b/newspipe/controllers/abstract.py @@ -125,7 +125,7 @@ class AbstractController: db.session.delete(obj) try: db.session.commit() - except Exception as e: + except Exception: db.session.rollback() return obj diff --git a/newspipe/controllers/article.py b/newspipe/controllers/article.py index d4adf99d..5a017bfa 100644 --- a/newspipe/controllers/article.py +++ b/newspipe/controllers/article.py @@ -1,4 +1,3 @@ -import re import logging import sqlalchemy from sqlalchemy import func diff --git a/newspipe/controllers/bookmark.py b/newspipe/controllers/bookmark.py index 3c9dcce9..d708491a 100644 --- a/newspipe/controllers/bookmark.py +++ b/newspipe/controllers/bookmark.py @@ -1,6 +1,5 @@ import logging import itertools -from datetime import datetime, timedelta from newspipe.bootstrap import db from newspipe.models import Bookmark diff --git a/newspipe/controllers/tag.py b/newspipe/controllers/tag.py index c97ce20e..4f6fabbe 100644 --- a/newspipe/controllers/tag.py +++ b/newspipe/controllers/tag.py @@ -1,6 +1,5 @@ import logging import itertools -from datetime import datetime, timedelta from newspipe.bootstrap import db from .abstract import AbstractController |