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
-~----------~----~----~----~------~----~------~--~---

  • ... ynedelin
    • ... Richard Kazuo
    • ... kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!
    • ... frostfyre
      • ... yury nedelin
      • ... Justin Rosen

Reply via email to