Skip to content

Commit

Permalink
fix issue 428 (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
userpj authored Jul 25, 2024
1 parent d90879c commit f176e50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run(
if len(message.content) > 300:
raise AppBuilderServerException(service_err_message="query is too long, expected <= 300, got {}"
.format(len(message.content)))
if len(instruction.content) > 1024:
if instruction is not None and len(instruction.content) > 1024:
raise AppBuilderServerException(service_err_message="instruction is too long, expected <= 1024, got {}"
.format(len(instruction)))

Expand Down

0 comments on commit f176e50

Please sign in to comment.