From c33d5dddf590918a87c711c3a4280bdf76b86d02 Mon Sep 17 00:00:00 2001 From: SvyatoslavArtymovych Date: Tue, 2 May 2023 09:49:45 +0300 Subject: [PATCH] flake8 --- app/forms/book.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/forms/book.py b/app/forms/book.py index 62e9de7..5288250 100644 --- a/app/forms/book.py +++ b/app/forms/book.py @@ -1,11 +1,6 @@ from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, ValidationError from wtforms.validators import DataRequired, Length -from flask import ( - flash, - redirect, - url_for, -) from app import models as m, db from app.logger import log @@ -42,5 +37,4 @@ class EditBookForm(BaseBookForm): log( log.WARNING, "Book with label [%s] already exists: [%s]", label, book_id ) - flash("Book label must be unique!", "danger") raise ValidationError("Book label must be unique!")