From 14d519f62c28c715b78cfd3f1ba444227f050684 Mon Sep 17 00:00:00 2001 From: Andrew <40076917+a-ys@users.noreply.github.com> Date: Mon, 28 Aug 2023 23:43:26 +0000 Subject: [PATCH] Fix typo in basehandler for pt2 --- ts/torch_handler/base_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/torch_handler/base_handler.py b/ts/torch_handler/base_handler.py index 227a4ec56c..4b763a9e97 100644 --- a/ts/torch_handler/base_handler.py +++ b/ts/torch_handler/base_handler.py @@ -198,7 +198,7 @@ def initialize(self, context): backend=pt2_backend, ) logger.info(f"Compiled model with backend {pt2_backend}") - except e: + except Exception as e: logger.warning( f"Compiling model model with backend {pt2_backend} has failed \n Proceeding without compilation" )