Jump to content

hou.OperationFailed handle & format


LaidlawFX

Recommended Posts

Hello,

I was wondering how you format to handle a hou.OperationFailed exception.

I was using the below function to convert the file sop to python, because yeah...

http://www.sidefx.com/docs/houdini/hom/hou/Geometry#saveToFile

but in order to catch the exception it raises hou.OperationFailed 

http://www.sidefx.com/docs/houdini/hom/hou/OperationFailed

So this is not the case for try, except in python. My Houdini Feng Shui is just not showing me the way at the moment.

Thanks,

-Ben

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...