Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Exception raised when a user aborts a command that needs to do cleanup.

src/g/s/gsutil-3.42/gslib/commands/config.py   gsutil(Download)
from gslib.commands.compose import MAX_COMPONENT_COUNT
from gslib.cred_types import CredTypes
from gslib.exception import AbortException
from gslib.exception import CommandException
from gslib.help_provider import HELP_NAME
def cleanup_handler(signalnum, handler):
  raise AbortException('User interrupted config command')
 

src/g/s/gsutil-HEAD/gslib/commands/config.py   gsutil(Download)
from gslib.commands.compose import MAX_COMPONENT_COUNT
from gslib.cred_types import CredTypes
from gslib.exception import AbortException
from gslib.exception import CommandException
from gslib.help_provider import HELP_NAME
def cleanup_handler(signalnum, handler):
  raise AbortException('User interrupted config command')