Hmmm I guess you should check out Try & Except.
try:
cmds.unknownCommand()
except:
print 'BEEP! Error.'On Mon, May 18, 2009 at 12:22 PM, ynedelin <[email protected]> wrote: > > what is a way to catch error when in python similar to MEL? > > thanks > Yury > > > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
