Fix startup error on import (#292)

This commit is contained in:
cybermaggedon 2025-01-29 19:11:08 +00:00 committed by GitHub
parent 1543a0650d
commit 701ec1e27e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,6 @@ Input is prompt, output is response. Mistral is default.
"""
import boto3
from botocore.errorfactory import ThrottlingException
import json
from prometheus_client import Histogram
import os
@ -259,7 +258,7 @@ class Processor(ConsumerProducer):
print("Done.", flush=True)
except ThrottlingException:
except self.bedrock.exceptions.ThrottlingException:
print("Send rate limit response...", flush=True)