aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-08-31 13:51:05 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-08-31 13:51:05 +0530
commit1086f53538fe039f8be81cdb67e69d40b914beca (patch)
tree2c2d88055566debd178e5ae5d1ebb75e708914a5
parent68439cc764d4882074dee067c88e00bed5a3e33e (diff)
added try except block
-rw-r--r--app/dock-single.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/dock-single.py b/app/dock-single.py
index 79337cf..c3f0cb5 100644
--- a/app/dock-single.py
+++ b/app/dock-single.py
@@ -245,7 +245,10 @@ with tempfile.TemporaryDirectory() as directory:
os.system("collada2gltf -i model.dae -o model.gltf")
copyfile("model.gltf",os.path.join(modelDirectory,(str(jobID)+".gltf")))
os.system("docker run -it --rm -v $(pwd):/usr/app leon/usd-from-gltf:latest model.gltf model.usdz")
- copyfile("model.usdz",os.path.join(modelDirectory,(str(jobID)+".usdz")))
+ try:
+ copyfile("model.usdz",os.path.join(modelDirectory,(str(jobID)+".usdz")))
+ except:
+ print("Could not generate USDZ file")
#copy(("Curie_Web_Result_"+str(jobID)),f)
email(zi)
#print((str(zi) + ".zip"))