diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-31 13:51:05 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-31 13:51:05 +0530 |
commit | 1086f53538fe039f8be81cdb67e69d40b914beca (patch) | |
tree | 2c2d88055566debd178e5ae5d1ebb75e708914a5 /app/dock-single.py | |
parent | 68439cc764d4882074dee067c88e00bed5a3e33e (diff) |
added try except block
Diffstat (limited to 'app/dock-single.py')
-rw-r--r-- | app/dock-single.py | 5 |
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")) |