"""Lambda Handler.""" from snapshot_exchange_rates.processor import SnapshotExchangeRatesProcessor from snapshot_exchange_rates.sentry import capture_exception def handler(event, context): """Lambda entry point.""" try: processor = SnapshotExchangeRatesProcessor(event) processor.process() return {'status': 'OK'} except Exception as e: capture_exception(e) raise e