Skip to content

Commit 005afe0

Browse files
committed
fix error lof
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
1 parent 539f5d4 commit 005afe0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bitsandbytes/cextension.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,10 @@ def get_native_library() -> BNBNativeLibrary:
299299
except Exception as e:
300300
error_msg = str(e)
301301
if not (ipex_cpu or ipex_xpu):
302-
logger.error(f"bitsandbytes library load error: {error_msg}\n If you are using Intel CPU/XPU, please install intel_extension_for_pytorch to enable required ops", exc_info=True)
302+
logger.error(
303+
f"bitsandbytes library load error: {error_msg}\n If you are using Intel CPU/XPU, please install intel_extension_for_pytorch to enable required ops",
304+
exc_info=True,
305+
)
303306

304307
# create a mock with error messaging as fallback
305308
lib = ErrorHandlerMockBNBNativeLibrary(error_msg)

0 commit comments

Comments
 (0)