chore: cleanup python code

This commit is contained in:
swve 2023-05-08 09:39:11 +00:00
parent 05f8539361
commit 7d78d06165
30 changed files with 46 additions and 87 deletions

View file

@ -17,7 +17,7 @@ async def upload_pdf(pdf_file, activity_id):
f.write(contents)
f.close()
except Exception as e:
except Exception:
return {"message": "There was an error uploading the file"}
finally:
pdf_file.file.close()