File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818ERROR_CODE_EXCEPTIONS = {
1919 "FunctionalRequirementTooComplex" : plain2code_exceptions .FunctionalRequirementTooComplex ,
2020 "ConflictingRequirements" : plain2code_exceptions .ConflictingRequirements ,
21- "CreditBalanceTooLow" : plain2code_exceptions .CreditBalanceTooLow ,
21+ "CreditBalanceTooLow" : plain2code_exceptions .RenderingCreditBalanceTooLow ,
2222 "LLMInternalError" : plain2code_exceptions .LLMInternalError ,
2323 "MissingResource" : plain2code_exceptions .MissingResource ,
2424 "PlainSyntaxError" : plain2code_exceptions .PlainSyntaxError ,
Original file line number Diff line number Diff line change 2323from plain2code_events import RenderFailed
2424from plain2code_exceptions import (
2525 ConflictingRequirements ,
26- CreditBalanceTooLow ,
2726 InternalClientError ,
2827 InternalServerError ,
2928 InvalidAPIKey ,
3736 OutdatedClientVersion ,
3837 PlainSyntaxError ,
3938 RenderCancelledError ,
39+ RenderingCreditBalanceTooLow ,
4040)
4141from plain2code_logger import (
4242 LOGGER_NAME ,
@@ -346,7 +346,7 @@ def main(): # noqa: C901
346346 exc_info = sys .exc_info ()
347347 console .error (f"Conflicting requirements: { str (e )} \n " )
348348 console .debug (f"Render ID: { run_state .render_id } " )
349- except CreditBalanceTooLow as e :
349+ except RenderingCreditBalanceTooLow as e :
350350 exc_info = sys .exc_info ()
351351 console .error (f"Credit balance too low: { str (e )} \n " )
352352 console .debug (f"Render ID: { run_state .render_id } " )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class ConflictingRequirements(Exception):
99 pass
1010
1111
12- class CreditBalanceTooLow (Exception ):
12+ class RenderingCreditBalanceTooLow (Exception ):
1313 pass
1414
1515
You can’t perform that action at this time.
0 commit comments