Skip to content

Commit

Permalink
Fix invalid type check
Browse files Browse the repository at this point in the history
The `isinstance` type check in `report_info` checks the type of an
incorrect variable. This commit fixes the issue.
  • Loading branch information
dkubek authored and fernflower committed Jun 12, 2023
1 parent 2c9be46 commit 6e29780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leapp/utils/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def report_errors(errors):

def report_info(report_paths, log_paths, answerfile=None, fail=False):
report_paths = [report_paths] if not isinstance(report_paths, list) else report_paths
log_paths = [log_paths] if not isinstance(report_paths, list) else log_paths
log_paths = [log_paths] if not isinstance(log_paths, list) else log_paths

if log_paths:
sys.stdout.write("\n")
Expand Down

0 comments on commit 6e29780

Please sign in to comment.