Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codeplain_REST_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
ERROR_CODE_EXCEPTIONS = {
"FunctionalRequirementTooComplex": plain2code_exceptions.FunctionalRequirementTooComplex,
"ConflictingRequirements": plain2code_exceptions.ConflictingRequirements,
"CreditBalanceTooLow": plain2code_exceptions.CreditBalanceTooLow,
"CreditBalanceTooLow": plain2code_exceptions.RenderingCreditBalanceTooLow,
"LLMInternalError": plain2code_exceptions.LLMInternalError,
"MissingResource": plain2code_exceptions.MissingResource,
"PlainSyntaxError": plain2code_exceptions.PlainSyntaxError,
Expand Down
4 changes: 2 additions & 2 deletions plain2code.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from plain2code_events import RenderFailed
from plain2code_exceptions import (
ConflictingRequirements,
CreditBalanceTooLow,
InternalClientError,
InternalServerError,
InvalidAPIKey,
Expand All @@ -37,6 +36,7 @@
OutdatedClientVersion,
PlainSyntaxError,
RenderCancelledError,
RenderingCreditBalanceTooLow,
)
from plain2code_logger import (
LOGGER_NAME,
Expand Down Expand Up @@ -346,7 +346,7 @@ def main(): # noqa: C901
exc_info = sys.exc_info()
console.error(f"Conflicting requirements: {str(e)}\n")
console.debug(f"Render ID: {run_state.render_id}")
except CreditBalanceTooLow as e:
except RenderingCreditBalanceTooLow as e:
exc_info = sys.exc_info()
console.error(f"Credit balance too low: {str(e)}\n")
console.debug(f"Render ID: {run_state.render_id}")
Expand Down
2 changes: 1 addition & 1 deletion plain2code_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ConflictingRequirements(Exception):
pass


class CreditBalanceTooLow(Exception):
class RenderingCreditBalanceTooLow(Exception):
pass


Expand Down
Loading