summaryrefslogtreecommitdiffstats
path: root/src/virtual/ogOperations.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/virtual/ogOperations.py')
-rw-r--r--src/virtual/ogOperations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/virtual/ogOperations.py b/src/virtual/ogOperations.py
index a3f94a8..930382d 100644
--- a/src/virtual/ogOperations.py
+++ b/src/virtual/ogOperations.py
@@ -418,7 +418,7 @@ class OgVirtualOperations:
except:
return None
- subprocess.run([f'umount {self.OG_IMAGES_PATH}'], shell=True)
+ subprocess.run([f'umount {self.OG_IMAGES_PATH}'], shell=True, check=True)
return True
@@ -445,7 +445,7 @@ class OgVirtualOperations:
f'ro,nolock,serverino,acl,' \
f'username={samba_config["user"]},' \
f'password={samba_config["pass"]}'
- subprocess.run([cmd], shell=True)
+ subprocess.run([cmd], shell=True, check=True)
try:
shutil.copy(f'{self.OG_IMAGES_PATH}/{name}', drive_path)