Merge pull request #1392 from dod-ccpo/170897424-fix-error-pages

Bugfix - 404 errors for non-existent pages
This commit is contained in:
leigh-mil 2020-02-06 19:19:25 -05:00 committed by GitHub
commit 9c460927e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,9 @@ from atst.models import (
def get_resources_from_context(view_args):
query = None
if view_args is None:
view_args = {}
if "portfolio_token" in view_args:
query = (
db.session.query(Portfolio)