Skip to content

Commit e9cf7d0

Browse files
committed
return app state validator
1 parent def4612 commit e9cf7d0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/controllers/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ def post(self, resource):
1616

1717
app = get_app_data(request)
1818

19+
if app.status_code != 200:
20+
return dict(status='fail', message=app.message), app.status_code
21+
1922
start = app.start
2023
end = app.end
2124
step = app.step

0 commit comments

Comments
 (0)