Skip to content

Commit

Permalink
fix exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupak committed Jul 31, 2024
1 parent 1789f03 commit 33ac332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IMOSPATools/audiofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def extractMetadataJson(fileName: str):
# Parse the JSON string
metadata = json.loads(jsonStr)
return metadata
except json.JSONDecodeError:
except json.JSONDecodeError as e:
logMsg = f"Error: Failed to decode JSON from audio file {fileName}"
log.error(logMsg + f"\nException {e}")
raise IMOSAcousticAudioFileException(logMsg)
Expand Down

0 comments on commit 33ac332

Please sign in to comment.