fix: delete

This commit is contained in:
Timothy J. Baek
2024-07-06 08:10:58 -07:00
parent 0d70d7c9ac
commit c9b85bd4a2
10 changed files with 32 additions and 2 deletions
+4 -1
View File
@@ -233,7 +233,10 @@ async def delete_function_by_id(
# delete the function file
function_path = os.path.join(FUNCTIONS_DIR, f"{id}.py")
os.remove(function_path)
try:
os.remove(function_path)
except:
pass
return result