mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: cleanup python code
This commit is contained in:
parent
05f8539361
commit
7d78d06165
30 changed files with 46 additions and 87 deletions
|
|
@ -11,7 +11,7 @@ async def upload_thumbnail(thumbnail_file, name_in_disk):
|
|||
f.write(contents)
|
||||
f.close()
|
||||
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return {"message": "There was an error uploading the file"}
|
||||
finally:
|
||||
thumbnail_file.file.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue