Skip to content

Commit

Permalink
Update src/poetry/console/commands/group_command.py
Browse files Browse the repository at this point in the history
Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
  • Loading branch information
samypr100 and radoering committed Apr 3, 2023
1 parent 2959da4 commit f80e97a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/poetry/console/commands/group_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ def validate_groups(self, group_options: dict[str, set[str]]) -> bool:
invalid_options = defaultdict(set)
for opt, groups in group_options.items():
for group in groups:
try:
self.poetry.package.dependency_group(group)
except ValueError:
if not self.poetry.package.has_dependency_group(group):
invalid_options[opt].add(group)
if invalid_options:
line_err = (
Expand Down

0 comments on commit f80e97a

Please sign in to comment.