Skip to content

Commit c4cf398

Browse files
committed
fix lint
1 parent c01fa98 commit c4cf398

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/triton/runtime/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
_IS_WINDOWS = sys.platform == "win32"
2222
SUBPROCESS_DECODE_ARGS = (locale.getpreferredencoding(), ) if _IS_WINDOWS else ()
2323

24+
2425
def is_xpu():
2526
import torch
2627
return torch.xpu.is_available()
@@ -112,7 +113,7 @@ def _build(name: str, src: str, srcdir: str, library_dirs: list[str], include_di
112113

113114
try:
114115
subprocess.run(cc_cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
115-
except Exception as e:
116+
except subprocess.CalledProcessError as e:
116117
output = e.stdout.decode(*SUBPROCESS_DECODE_ARGS)
117118
raise RuntimeError(output)
118119
return so

0 commit comments

Comments
 (0)