Skip to content

Commit

Permalink
🧹remove unused variables
Browse files Browse the repository at this point in the history
Signed-off-by: Kelly A <kellyaa@users.noreply.github.com>
  • Loading branch information
kellyaa committed May 6, 2024
1 parent c3ff60b commit 6674a5e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions caikit/runtime/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def main() -> int:
for library in args.library or []:
log.info("<COR88091092I>", "Importing library %s", library)
importlib.import_module(library)
except Exception as e:
except Exception:
message = "Unable to import module {}".format(library)
log.warning(
{
Expand Down Expand Up @@ -193,7 +193,7 @@ def main() -> int:
"Unable to find module {} to train",
args.module,
)
except (ValueError, Exception) as e:
except (ValueError, Exception):
message = "Unable to find module {} to train".format(args.module)
log.warning(
{
Expand Down Expand Up @@ -262,7 +262,7 @@ def main() -> int:
"stack_trace": traceback.format_exc(),
}
)
except Exception as e:
except Exception:
message = "Exception encountered when attempting to parse input parameters"
log.warning(
{
Expand Down Expand Up @@ -292,7 +292,7 @@ def main() -> int:
log.error(err)
write_termination_log("Training finished unsuccessfully")
return INTERNAL_ERROR_EXIT_CODE
except MemoryError as e:
except MemoryError:
message = "OOM error during training"
log.warning(
{
Expand All @@ -303,7 +303,7 @@ def main() -> int:
)
write_termination_log(message)
exit(INTERNAL_ERROR_EXIT_CODE)
except Exception as e:
except Exception:
message = "Unhandled exception during training"
log.warning(
{
Expand Down

0 comments on commit 6674a5e

Please sign in to comment.