#!/usr/bin/env python import sys import s3tk import botocore try: s3tk.cli() except (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) as e: s3tk.abort(str(e)) except KeyboardInterrupt: sys.exit(1)