这段Python代码用过vb怎么写呢?

挺简单的,想去百度又不知道关键词,不怎么用vb,但是这里必须要用了……
感谢回答了了

try:
    尝试运行……

except:
    如果出错就……

vb6的话,用
on error goto exphandler:
尝试运行……
goto afterexp:
exphandler:
如果出错就……
afterexp:
...

vb.net的话,用
try
尝试运行……
cathch
如果出错就……
end try

https://docs.microsoft.com/zh-cn/dotnet/visual-basic/language-reference/statements/try-catch-finally-statement