Skip to content

Commit

Permalink
Check if current_user is available before getting job user props.
Browse files Browse the repository at this point in the history
  • Loading branch information
notoraptor committed Mar 5, 2024
1 parent bad73f5 commit 6bad887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clockwork_web/core/jobs_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def get_filtered_and_paginated_jobs(
LD_jobs = list(mc["jobs"].find(mongodb_filter))

# Get job user props
if LD_jobs:
if LD_jobs and current_user:
user_props_map = {}
# Collect all job user props related to found jobs,
# and store them in a dict with keys (mila email username, job ID, cluster_name)
Expand Down

0 comments on commit 6bad887

Please sign in to comment.