mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Follow DeepSource reccommendations
Nolonger binding to the address, by default it is always localhost
This commit is contained in:
parent
6f759bb678
commit
36a7f83db6
7 changed files with 15 additions and 22 deletions
|
@ -114,7 +114,7 @@ def delete_image(image_id):
|
|||
|
||||
# Delete file
|
||||
try:
|
||||
os.remove(os.path.join(current_app.config['UPLOAD_FOLDER'],img.file_name))
|
||||
os.remove(os.path.join(current_app.config['UPLOAD_FOLDER'], img.file_name))
|
||||
except FileNotFoundError:
|
||||
logging.warning('File not found: %s, already deleted or never existed', img.file_name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue