How to handle java.io.Exception in python notebook

StuartParker188
New Contributor III

I'm attempting to mount a volume using dbutils.fs.mount in a python workbook

in the exception handling for this statement, I have found an exception that doesn't get caught using the standard try/except handling

for example, if passing through a container name that does not exist I get the following exception - but it is not caught

ExecutionError: An error occurred while calling o390.mount.

: java.io.FileNotFoundException: /: No such file or directory.

Is there an approach to catch a java.io.Exception within a python notebook?