How to handle java.io.Exception in python notebook
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2022 11:46 PM
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?
Labels:
- Labels:
-
Exception Handling
-
Python