Message 1 of 1
[mayapy.exe] : can't control error!!, when try to open crashed maya file

Not applicable
12-05-2019
02:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I try to make script that query all reference path from maya file without opening it.
So, I used mayapy.exe.
But when run script with special maya file that contain 'Fatal Error', my script was stopped abnormally
(when i opened it mannually, not code, It also was not opened)
Question !! : Is there any way that can control this error by code?, like try-except of python?
(Because I will run script with a lots of maya file and I do not want to stopped this process...
Just want to write the error log in txt and then pass this error...)
Thanks!