Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
JusticeV452 committed Apr 24, 2024
1 parent 8cc1abd commit 5570892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/app/management/commands/launch_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class Command(BaseCommand):
def handle(self, *args, **options):
on_windows = platform.system() == "Windows"
frontend_cmd = [f"npm{".cmd" if on_windows else ""}", "run", "start"]
frontend = subprocess.Popen(frontend_cmd)
call_command("runserver")
frontend.kill()
with subprocess.Popen(frontend_cmd) as frontend:
call_command("runserver")
frontend.kill()

0 comments on commit 5570892

Please sign in to comment.