Several minor changes (pylint)

This commit is contained in:
augustin64 2024-01-16 21:32:00 +01:00
parent fb13e396e5
commit 56d01ee3e2
4 changed files with 6 additions and 5 deletions

View File

@ -39,8 +39,9 @@ def load_config():
app.config.from_object(user_config)
if os.path.abspath(app.config["INSTANCE_PATH"]) != app.instance_path:
print("[ERROR] Using two different instance path. \
\nPlease modify INSTANCE_PATH only in default_config.py and remove it from $INSTANCE_PATH/config.py")
print(("[ERROR] Using two different instance path.\n"
"Please modify INSTANCE_PATH only in default_config.py ",
"and remove it from $INSTANCE_PATH/config.py"))
sys.exit(1)
else:
print("[WARNING] Using default config")

View File

@ -5,7 +5,6 @@ import os
from flask import current_app, abort, Blueprint, send_file
from .db import get_db
from .auth import login_required
bp = Blueprint("thumbnails", __name__, url_prefix="/thumbnails")

View File

@ -1,3 +1,4 @@
import os
import random
import string
import sqlite3