Skip to content

Commit

Permalink
Driving directions to store
Browse files Browse the repository at this point in the history
  • Loading branch information
docwho2 committed Nov 29, 2023
1 parent 59a1c3a commit d2262ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public LexV2Response handleRequest(LexV2Event lexRequest, Context cntxt) {
};

} catch (Exception e) {
log.error(e);
log.error("Unhandled Exception",e);
// Unhandled Exception
return buildResponse(lexRequest, "Sorry, I'm having a problem fulfilling your request. Chat GPT might be down, Please try again later.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static FunctionExecutor getFunctionExecuter(LexV2Event lexRequest) {
}

final var inputMode = LexInputMode.fromString(lexRequest.getInputMode());
final var callingNumber = lexRequest.getRequestAttributes().get("callingNumber");
final var callingNumber = lexRequest.getRequestAttributes() != null ? lexRequest.getRequestAttributes().get("callingNumber") : null;
final var list = new LinkedList<AbstractFunction>();

functions.forEach(f -> {
Expand Down

0 comments on commit d2262ba

Please sign in to comment.