Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitamalinov committed Mar 9, 2024
1 parent 18d3196 commit aafb2e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
traces_sample_rate=1.0
)

@app.get("/sentry-debug")
def read_health_check():
division_by_zero = 1/0
return {"version": "1.0.0"}

handler = Mangum(app=app)

@app.post(path="/webhook")
Expand Down
3 changes: 2 additions & 1 deletion utils/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def apply_patch(original_text: str, diff_text: str) -> str:
print(f"Command: {' '.join(e.cmd)}")
print(f"Exit status: {e.returncode}")
raise

except Exception as e:
print(f"Error: {e}")
finally:
os.remove(path=original_file_name)
os.remove(path=diff_file_name)
Expand Down

0 comments on commit aafb2e0

Please sign in to comment.