Minor pylint fixes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user