summaryrefslogtreecommitdiff
path: root/matweb
diff options
context:
space:
mode:
authorJan Friedli2020-08-30 14:55:46 +0200
committerjfriedli2020-09-06 08:29:17 -0700
commit3376158b2c9f11d9f66b1d680d6cf5d8b06a9388 (patch)
tree2629f1ce57df143185fdc5cc7824c3218e1d4fae /matweb
parent58709ebca01940b57527664adf6ad0309d6dd980 (diff)
wrong log format
Diffstat (limited to 'matweb')
-rw-r--r--matweb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/matweb/utils.py b/matweb/utils.py
index ea84f4f..f4cbca3 100644
--- a/matweb/utils.py
+++ b/matweb/utils.py
@@ -99,7 +99,7 @@ def get_file_paths(filename, upload_folder):
99 99
100def is_valid_api_download_file(filename: str, key: str, secret: str, upload_folder: str) -> [str, str]: 100def is_valid_api_download_file(filename: str, key: str, secret: str, upload_folder: str) -> [str, str]:
101 if filename != secure_filename(filename): 101 if filename != secure_filename(filename):
102 current_app.logger.error('Insecure filename %', filename) 102 current_app.logger.error('Insecure filename %s', filename)
103 abort(400, message='Insecure filename') 103 abort(400, message='Insecure filename')
104 104
105 complete_path, filepath = get_file_paths(filename, upload_folder) 105 complete_path, filepath = get_file_paths(filename, upload_folder)