mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-02 03:02:23 +02:00
Fix flake8 warnings: mostly unused imports
Fixesb4f51867b6
("Fix crash when a localized email template is missing (#592)") Fixes38aae77d33
("Improve error handling when sending emails") Fixes77f50e9137
("Add new tests to check for email failures")
This commit is contained in:
parent
99d9159c21
commit
0949a58da8
2 changed files with 5 additions and 4 deletions
|
@ -14,7 +14,6 @@ import os
|
||||||
import json
|
import json
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
import six
|
import six
|
||||||
import re
|
|
||||||
import smtplib
|
import smtplib
|
||||||
import socket
|
import socket
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
|
@ -15,9 +15,8 @@ from flask import (
|
||||||
session, url_for, send_file, send_from_directory
|
session, url_for, send_file, send_from_directory
|
||||||
)
|
)
|
||||||
from flask_mail import Message
|
from flask_mail import Message
|
||||||
from flask_babel import get_locale, gettext as _
|
from flask_babel import gettext as _
|
||||||
from werkzeug.security import check_password_hash, generate_password_hash
|
from werkzeug.security import check_password_hash, generate_password_hash
|
||||||
from smtplib import SMTPRecipientsRefused
|
|
||||||
from werkzeug.exceptions import NotFound
|
from werkzeug.exceptions import NotFound
|
||||||
from sqlalchemy import orm
|
from sqlalchemy import orm
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
@ -27,7 +26,10 @@ from ihatemoney.forms import (
|
||||||
AdminAuthenticationForm, AuthenticationForm, EditProjectForm,
|
AdminAuthenticationForm, AuthenticationForm, EditProjectForm,
|
||||||
InviteForm, MemberForm, PasswordReminder, ResetPasswordForm, ProjectForm, get_billform_for
|
InviteForm, MemberForm, PasswordReminder, ResetPasswordForm, ProjectForm, get_billform_for
|
||||||
)
|
)
|
||||||
from ihatemoney.utils import Redirect303, list_of_dicts2json, list_of_dicts2csv, LoginThrottler, render_localized_template, send_email
|
from ihatemoney.utils import (
|
||||||
|
Redirect303, list_of_dicts2json, list_of_dicts2csv, LoginThrottler,
|
||||||
|
render_localized_template, send_email
|
||||||
|
)
|
||||||
|
|
||||||
main = Blueprint("main", __name__)
|
main = Blueprint("main", __name__)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue