Skip to content

Commit

Permalink
remove extra else
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Apr 19, 2024
1 parent 3eec81b commit d3a7c6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tom_targets/management/commands/converttargetextras.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ def convert_target_extra(self, chosen_extra, chosen_model_field):
setattr(target, chosen_model_field, extra.value)
target.save()
extra.delete()
else:
self.stdout.write(f"{self.style.ERROR('Warning:')} No TargetExtra found for "
f"{self.style.SUCCESS(chosen_extra)}.")


def handle(self, *args, **options):
chosen_extras = options['target_extra']
Expand Down

0 comments on commit d3a7c6b

Please sign in to comment.