Skip to content

Commit

Permalink
"TypeError: mget() missing 1 required positional argument: 'keys'", w…
Browse files Browse the repository at this point in the history
…hen no analyses exist fix
  • Loading branch information
grzetzp committed Oct 9, 2024
1 parent 6b97d70 commit 19e7643
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drakrun/drakrun/lib/analysis_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def create_or_update_analysis_status(

def get_analysis_status_list(rs: StrictRedis) -> List[Dict[str, Any]]:
analysis_ids = rs.lrange(ANALYSES_LIST, 0, -1)
if len(analysis_ids) == 0:
return []
analysis_data = zip(
analysis_ids,
[
Expand Down

0 comments on commit 19e7643

Please sign in to comment.