Skip to content

Commit

Permalink
add WebAppError
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Jun 27, 2024
1 parent e94a2b9 commit 1b1778c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oc/cherrypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def getclientipaddr():



'''

class WebAppError(cherrypy.HTTPError):
def __init__(self, message, status=400, code=400, source=None):
super().__init__(status, message)
Expand All @@ -170,7 +170,7 @@ def __init__(self, message, status=400, code=400, source=None):

def to_dict(self):
return { 'status':self.status, 'error': { 'code': self.code, 'message': self.message, 'source': self.source } }
'''


# Allow (partial) case-insensivity in URLs
class CaseInsensitiveDispatcher(Dispatcher):
Expand Down

0 comments on commit 1b1778c

Please sign in to comment.