Skip to content

Commit

Permalink
solves: #117 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loevenich, Mathis committed Oct 29, 2020
1 parent 90f1256 commit 7ab9128
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htcanalyze/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,9 @@ def print_results(htcanalyze: HTCAnalyze,
# Allow this to happen
if results is None:
sys.exit(0)
# convert result to processed data list, if given as dict, else copy
proc_data_list = [results] if isinstance(results, dict) else results.copy()

# convert result to processed data list, if not a list
proc_data_list = [results] if not isinstance(results, list) else results

# check for ignore values
for data_dict in proc_data_list:
Expand Down

0 comments on commit 7ab9128

Please sign in to comment.