mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 09:16:25 +01:00
Several minor changes (pylint)
This commit is contained in:
parent
fb13e396e5
commit
56d01ee3e2
@ -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")
|
||||
|
@ -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")
|
||||
|
@ -1,3 +1,4 @@
|
||||
import os
|
||||
import random
|
||||
import string
|
||||
import sqlite3
|
||||
|
Loading…
Reference in New Issue
Block a user