mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix - add check for presence of destination
This commit is contained in:
parent
4283345694
commit
6a2e804c46
1 changed files with 6 additions and 5 deletions
11
start.py
11
start.py
|
|
@ -306,12 +306,13 @@ def run_disk_mapping_commands(mongo_url):
|
|||
|
||||
_print("disk mapping args:: {}".format(args))
|
||||
try:
|
||||
output = subprocess.Popen(args)
|
||||
if output.returncode and output.returncode != 0:
|
||||
exc_msg = "Executing was not successful: \"{}\"".format(
|
||||
args)
|
||||
if not os.path.exists(destination):
|
||||
output = subprocess.Popen(args)
|
||||
if output.returncode and output.returncode != 0:
|
||||
exc_msg = "Executing was not successful: \"{}\"".format(
|
||||
args)
|
||||
|
||||
raise RuntimeError(exc_msg)
|
||||
raise RuntimeError(exc_msg)
|
||||
except TypeError as exc:
|
||||
_print("Error {} in mapping drive {}, {}".format(str(exc),
|
||||
source,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue