Skip to content
Snippets Groups Projects
Commit 36c669a8 authored by Theodore Chang's avatar Theodore Chang
Browse files

Merge branch 'tlc/safeguard-user-id' into 'develop'

Handle case where user is None in graph response retrieval

See merge request !2400
parents 59d87ebd 94cee518
No related tags found
2 merge requests!2421Removed direct infrastructure dependency from mkdocs macros,!2400Handle case where user is None in graph response retrieval
Pipeline #246079 failed
......@@ -142,6 +142,6 @@ async def archive_query(
del graph_dict[Token.SEARCH]['m_request']['query']
with UserReader(graph_dict, user=user) as reader:
response: dict = await reader.read(user.user_id)
response: dict = await reader.read(user.user_id if user else '')
return GraphJSONResponse(response)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment