diff --git a/docs/en/quick-answers/developing/maya-shelf-app-launcher.md b/docs/en/quick-answers/developing/maya-shelf-app-launcher.md index 3af30db46..79a7decb3 100644 --- a/docs/en/quick-answers/developing/maya-shelf-app-launcher.md +++ b/docs/en/quick-answers/developing/maya-shelf-app-launcher.md @@ -31,7 +31,7 @@ try: # find the current instance of the app. # You can print current_engine.commands to list all available commands. command = current_engine.commands.get(tk_app) - if not app: + if not command: cmds.error("The Toolkit app '%s' is not available!" % tk_app) # now we have the command we need to call the registered callback