From f3b3d321e5799153efbf9ba81c73b97f9ed04d3a Mon Sep 17 00:00:00 2001 From: Thiago Moretto Date: Mon, 5 Aug 2024 13:34:03 -0300 Subject: [PATCH] Fix lint issue --- src/crewai/utilities/token_counter_callback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/utilities/token_counter_callback.py b/src/crewai/utilities/token_counter_callback.py index c5f632d5f5..dc0cef71df 100644 --- a/src/crewai/utilities/token_counter_callback.py +++ b/src/crewai/utilities/token_counter_callback.py @@ -17,7 +17,7 @@ def __init__(self, model_name, token_cost_process): self.token_cost_process = token_cost_process try: self.encoding = tiktoken.encoding_for_model(self.model_name) - except KeyError as e: + except KeyError: self.encoding = tiktoken.get_encoding("cl100k_base") def on_llm_start(