Skip to content

Commit b4fd594

Browse files
authored
Fix indentation
1 parent 648ecd2 commit b4fd594

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

bitsandbytes/diagnostics/main.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,27 @@ def main():
9292
else:
9393
print(f"Checking that the library is importable and {BNB_BACKEND} is callable...")
9494

95-
try:
96-
sanity_check()
97-
print("SUCCESS!")
98-
return
99-
except RuntimeError as e:
100-
if "not available in CPU-only" in str(e):
101-
print(
102-
f"WARNING: {__package__} is currently running as CPU-only!\n"
103-
"Therefore, 8-bit optimizers and GPU quantization are unavailable.\n\n"
104-
f"If you think that this is so erroneously,\nplease report an issue!",
105-
)
106-
else:
107-
raise e
108-
except Exception:
109-
traceback.print_exc()
110-
111-
print_dedented(
112-
f"""
113-
Above we output some debug information.
114-
Please provide this info when creating an issue via {PACKAGE_GITHUB_URL}/issues/new/choose
115-
WARNING: Please be sure to sanitize sensitive info from the output before posting it.
116-
""",
117-
)
118-
sys.exit(1)
95+
try:
96+
sanity_check()
97+
print("SUCCESS!")
98+
return
99+
except RuntimeError as e:
100+
if "not available in CPU-only" in str(e):
101+
print(
102+
f"WARNING: {__package__} is currently running as CPU-only!\n"
103+
"Therefore, 8-bit optimizers and GPU quantization are unavailable.\n\n"
104+
f"If you think that this is so erroneously,\nplease report an issue!",
105+
)
106+
else:
107+
raise e
108+
except Exception:
109+
traceback.print_exc()
110+
111+
print_dedented(
112+
f"""
113+
Above we output some debug information.
114+
Please provide this info when creating an issue via {PACKAGE_GITHUB_URL}/issues/new/choose
115+
WARNING: Please be sure to sanitize sensitive info from the output before posting it.
116+
""",
117+
)
118+
sys.exit(1)

0 commit comments

Comments
 (0)