Skip to content

Commit

Permalink
address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blooop committed Dec 31, 2024
1 parent 4b75bc4 commit dfb3fa1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rockervsc/rockervsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ def container_exists(container_name: str) -> bool:
return container_name in result.stdout.splitlines()
except subprocess.CalledProcessError as e:
raise RuntimeError(f"Failed to execute Docker command: {e}")
except Exception as e:
raise RuntimeError(f"An unexpected error occurred: {e}")


def run_rockervsc(path: str = "."):
Expand All @@ -95,7 +93,7 @@ def run_rockervsc(path: str = "."):

if not container_exists(container_name):
print(f"running cmd: {cmd}")
subprocess.call(cmd, shell=True)
subprocess.run(cmd, shell=True)
else:
print("container already running, attaching vscode to container")
launch_vscode(container_name, container_hex)

0 comments on commit dfb3fa1

Please sign in to comment.