Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ValueError: max() arg is an empty sequence #1

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tox/session/commands/show_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def show_envs(config, all_envs=False, description=False):

if description and default:
report.line("default environments:")
max_length = max(len(env) for env in (default + extra))
max_length = max(len(env) for env in (default + extra) or [''])

def report_env(e):
if description:
Expand Down