Assuming I have the following python code:
import module as m try: # do something except (m.SomeError, ValueError) as err: # do other stuff
And that I want to write it in Julia using PyCall, starting with:
using PyCall m = pyimport("module")
How can I use Julia’s
try-catch statement to achieve the same result as in the Python code? In other words, I want to catch
ValueError in Julia.