isururana commited on
Commit
9aed6c2
Β·
verified Β·
1 Parent(s): 3cb44aa

Added error handling to mastering.py

Browse files
Files changed (1) hide show
  1. mastering.py +4 -1
mastering.py CHANGED
@@ -13,7 +13,10 @@ import subprocess
13
 
14
 
15
  def masterAudio(inputPath,outputPath):
16
- master = subprocess.run(["node", "masteringModule/main.js", "--input", inputPath, "--output", outputPath])
 
 
 
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)