Skip to content

Commit

Permalink
from contextlib import suppress
Browse files Browse the repository at this point in the history
  • Loading branch information
kzawora-intel committed Sep 25, 2024
1 parent e4f6d9d commit 7ff33bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/worker/habana_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1941,8 +1941,8 @@ def execute_model(

def shutdown_inc(self):
can_finalize_inc = False
import contextlib
with contextlib.suppress(AttributeError):
from contextlib import suppress
with suppress(AttributeError):
can_finalize_inc = (self.model_config.quantization == 'inc') and \
(self.model.model is not None) and \
self.inc_initialized_successfully and \
Expand Down

0 comments on commit 7ff33bf

Please sign in to comment.