Skip to content

Commit

Permalink
Make output more readable in console for list-qt-commercial
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidev committed Jan 27, 2025
1 parent 4e3e258 commit 32fb34c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion aqt/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,16 @@ def run_list_qt_commercial(self, args) -> None:

# Run search and display output
output = safely_run_save_output(cmd, Settings.qt_installer_timeout)
print(output)

# Process and print the output properly
if output.stdout:
# Print the actual output with proper newlines
print(output.stdout)

# If there are any errors, print them as warnings
if output.stderr:
for line in output.stderr.splitlines():
self.logger.warning(line)

except Exception as e:
self.logger.error(f"Failed to list Qt commercial packages: {e}")
Expand Down

0 comments on commit 32fb34c

Please sign in to comment.