Clean up unnecessary exception imports
This commit is contained in:
parent
b6e250a7cd
commit
2a6478f3cf
@ -7,7 +7,6 @@ from flask import flash, Flask, render_template, request
|
|||||||
from flask.helpers import abort, url_for
|
from flask.helpers import abort, url_for
|
||||||
from flask.json import jsonify
|
from flask.json import jsonify
|
||||||
from flask_wtf.csrf import CSRFError
|
from flask_wtf.csrf import CSRFError
|
||||||
from sqlalchemy.exc import SQLAlchemyError
|
|
||||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||||
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
@ -9,7 +9,6 @@ from ..tools.test import answer_options, get_correct_answers
|
|||||||
from flask import abort, Blueprint, jsonify, render_template, request, send_file, session
|
from flask import abort, Blueprint, jsonify, render_template, request, send_file, session
|
||||||
from flask.helpers import abort, flash, redirect, url_for
|
from flask.helpers import abort, flash, redirect, url_for
|
||||||
from flask_login import current_user, login_required
|
from flask_login import current_user, login_required
|
||||||
from sqlalchemy.exc import SQLAlchemyError
|
|
||||||
|
|
||||||
from datetime import date, datetime, timedelta
|
from datetime import date, datetime, timedelta
|
||||||
from json import loads
|
from json import loads
|
||||||
|
@ -3,12 +3,8 @@ from ..extensions import db
|
|||||||
from ..tools.logs import write
|
from ..tools.logs import write
|
||||||
|
|
||||||
from flask import jsonify
|
from flask import jsonify
|
||||||
from sqlalchemy.exc import SQLAlchemyError
|
|
||||||
from wtforms.validators import ValidationError
|
from wtforms.validators import ValidationError
|
||||||
|
|
||||||
import json
|
|
||||||
from sqlalchemy.ext import mutable
|
|
||||||
|
|
||||||
def value(min:int=0, max:int=None):
|
def value(min:int=0, max:int=None):
|
||||||
if not max:
|
if not max:
|
||||||
message = f'Value must be greater than {min}.'
|
message = f'Value must be greater than {min}.'
|
||||||
|
@ -4,7 +4,6 @@ from ..tools.logs import write
|
|||||||
|
|
||||||
from flask import request, session
|
from flask import request, session
|
||||||
from flask.helpers import abort, redirect, url_for
|
from flask.helpers import abort, redirect, url_for
|
||||||
from sqlalchemy.exc import SQLAlchemyError
|
|
||||||
|
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@ from ..tools.logs import write
|
|||||||
from flask import Blueprint, jsonify, render_template, request
|
from flask import Blueprint, jsonify, render_template, request
|
||||||
from flask.helpers import abort, flash, redirect, url_for
|
from flask.helpers import abort, flash, redirect, url_for
|
||||||
from flask_login import login_required
|
from flask_login import login_required
|
||||||
from sqlalchemy.exc import SQLAlchemyError
|
|
||||||
|
|
||||||
view = Blueprint(
|
view = Blueprint(
|
||||||
name='view',
|
name='view',
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
from main import app
|
from main import app
|
||||||
from app.models import User
|
from app.models import User
|
||||||
|
|
||||||
from sqlalchemy.exc import SQLAlchemyError
|
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from getpass import getpass
|
from getpass import getpass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user