Spaces:
Runtime error
Runtime error
Added error handling to mastering.py
Browse files- mastering.py +4 -1
mastering.py
CHANGED
|
@@ -13,7 +13,10 @@ import subprocess
|
|
| 13 |
|
| 14 |
|
| 15 |
def masterAudio(inputPath,outputPath):
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# testing
|
| 19 |
# masterAudio(inputPath,outputPath)
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
def masterAudio(inputPath,outputPath):
|
| 16 |
+
try:
|
| 17 |
+
master = subprocess.run(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
|
| 18 |
+
except subprocess.CalledProcessError as err:
|
| 19 |
+
print("Error running Mastering Module: ", err)
|
| 20 |
|
| 21 |
# testing
|
| 22 |
# masterAudio(inputPath,outputPath)
|