Feat: optimize error desc (#152)
This commit is contained in:
parent
a7c40a07d8
commit
9a5ae9f51f
15 changed files with 119 additions and 55 deletions
|
|
@ -17,6 +17,6 @@ def _get_app(app_id, mode=None):
|
|||
raise NotFound("App not found")
|
||||
|
||||
if mode and app.mode != mode:
|
||||
raise AppUnavailableError()
|
||||
raise NotFound("The {} app not found".format(mode))
|
||||
|
||||
return app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue