aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2021-10-17 09:04:18 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2021-10-17 09:04:18 +0200
commit1db4b53fd918603228fcea2a24f13b72aefaf247 (patch)
tree55a0370c69f10aee1ea19fd492c902b811d44966
parentchg: removed useless import (diff)
downloadnewspipe-1db4b53fd918603228fcea2a24f13b72aefaf247.tar.gz
newspipe-1db4b53fd918603228fcea2a24f13b72aefaf247.tar.bz2
newspipe-1db4b53fd918603228fcea2a24f13b72aefaf247.zip
removed uselle blueprint
-rw-r--r--newspipe/web/views/user.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/newspipe/web/views/user.py b/newspipe/web/views/user.py
index 7a8c6735..6643cbca 100644
--- a/newspipe/web/views/user.py
+++ b/newspipe/web/views/user.py
@@ -16,7 +16,6 @@ from newspipe.lib.data import import_json, import_opml
from newspipe.web.forms import ProfileForm
from newspipe.web.lib.user_utils import confirm_token
-users_bp = Blueprint("users", __name__, url_prefix="/users")
user_bp = Blueprint("user", __name__, url_prefix="/user")
@@ -114,7 +113,7 @@ def management():
misc_utils.fetch(current_user.id, None)
flash(str(nb) + " " + gettext("feeds imported."), "success")
flash(gettext("Downloading articles..."), "info")
- except:
+ except Exception:
flash(gettext("Impossible to import the new feeds."), "danger")
elif None != request.files.get("jsonfile", None):
# Import an account
@@ -125,7 +124,7 @@ def management():
try:
nb = import_json(current_user.nickname, data.read())
flash(gettext("Account imported."), "success")
- except:
+ except Exception:
flash(gettext("Impossible to import the account."), "danger")
else:
flash(gettext("File not allowed."), "danger")
bgstack15