Skip to content

Instantly share code, notes, and snippets.

@systempuntoout
Created September 27, 2010 20:57
Show Gist options
  • Select an option

  • Save systempuntoout/599821 to your computer and use it in GitHub Desktop.

Select an option

Save systempuntoout/599821 to your computer and use it in GitHub Desktop.
if cmd != None:
cmd.set_api(api)
cmd.set_shared_storage(shared_storage)
try:
cmd.run()
cmd.unset_api()
cmd.unset_shared_storage()
api.get_command_repository().store_commands(cmd.get_next_commands())
except Exception, ex:
logging.info(ex)
pass
deferred.defer(deferred_command_executor, _queue="commandqueue")
@systempuntoout
Copy link
Author

if cmd != None:
cmd.set_api(api)
cmd.set_shared_storage(shared_storage)
try:
cmd.run()
cmd.unset_api()
cmd.unset_shared_storage()
api.get_command_repository().store_commands(cmd.get_next_commands())
except Exception, ex:
logging.info(ex)
pass
deferred.defer(deferred_command_executor, _queue="commandqueue")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment