Minor pylint fixes

This commit is contained in:
2021-12-30 17:25:07 +00:00
parent 00b421055f
commit 860ff65c7e

View File

@@ -16,8 +16,8 @@ def apikey(f):
def check_apikey(*args, **kwargs):
if request.headers.get("X-Api-Key") == "fbdhjsbf43443refdsafa":
return f(*args, **kwargs)
else:
return jsonify({"message": "ERROR: Unauthorized"}), 401
return jsonify({"message": "ERROR: Unauthorized"}), 401
return check_apikey
@@ -44,7 +44,7 @@ def check():
return jsonify({"message": "ERROR: Unknown Algorithm"}), 400
try:
filesize = os.path.getsize(filename)
unused_filesize = os.path.getsize(filename)
except:
return jsonify({"message": "ERROR: Unable to Access File"}), 400