Skip to content

Commit

Permalink
Create errors.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH committed May 11, 2024
1 parent 79f7ab3 commit 4f444bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/utils/errors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Error handling utilities
from flask import abort

def not_found(message):
abort(404, message=message)

0 comments on commit 4f444bd

Please sign in to comment.