mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 11:54:52 +00:00
Tuple rather than list of exception types
This commit is contained in:
parent
29ff597ef9
commit
549df839d7
@ -130,7 +130,7 @@ class Weights:
|
||||
try:
|
||||
bits = self.get_tensor("gptq_bits").item()
|
||||
groupsize = self.get_tensor("gptq_groupsize").item()
|
||||
except [SafetensorError, RuntimeError] as e:
|
||||
except (SafetensorError, RuntimeError) as e:
|
||||
try:
|
||||
import os
|
||||
|
||||
@ -159,7 +159,7 @@ class Weights:
|
||||
try:
|
||||
bits = self.get_tensor("gptq_bits").item()
|
||||
groupsize = self.get_tensor("gptq_groupsize").item()
|
||||
except [SafetensorError, RuntimeError] as e:
|
||||
except (SafetensorError, RuntimeError) as e:
|
||||
try:
|
||||
import os
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user