Skip to content

Commit

Permalink
Fix: return a empty response instead of erroring
Browse files Browse the repository at this point in the history
  • Loading branch information
TAG-Epic committed Nov 8, 2020
1 parent 8a43b4c commit 16e5b56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def update_stats(name):
metric.inc(value)
elif request.method == "PATCH":
metric.set(value)
return ""


serve(app, port=5050)

0 comments on commit 16e5b56

Please sign in to comment.