Skip to content

Commit

Permalink
Fix electrolytes info UnboundLocalError
Browse files Browse the repository at this point in the history
  • Loading branch information
gerlero committed Jul 30, 2023
1 parent b027621 commit f5f8796
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions electrolytes/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def info(names: Annotated[Optional[List[str]], typer.Argument(help="Component na
except KeyError:
typer.echo(f"Error: {name}: no such component", err=True)
errors_ocurred = True
continue

charges = list(range(constituent.pos_count, 0, -1)) + list(range(-1, -constituent.neg_count - 1, -1))
uu = constituent.u_pos[::-1] + constituent.u_neg[::-1]
Expand Down

0 comments on commit f5f8796

Please sign in to comment.