File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 ,
26+ RenderingCreditBalanceTooLow ,
2727 InternalClientError ,
2828 InternalServerError ,
2929 InvalidAPIKey ,
@@ -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