fix: delete
This commit is contained in:
1 parent
0d70d7c9ac
commit
c9b85bd4a2
10 files changed
+32
-2
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user