File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ def find_executable(executable) -> List[str]:
497
497
if exe_path is not None :
498
498
cmd = [exe_path ]
499
499
else :
500
- raise RuntimeError (f"configured ruff executable not found: { executable !r} " )
500
+ log . error (f"Configured ruff executable not found: { executable !r} " )
501
501
502
502
# try the python module
503
503
if cmd is None :
@@ -511,9 +511,10 @@ def find_executable(executable) -> List[str]:
511
511
cmd = [system_exe ]
512
512
513
513
if cmd is None :
514
- raise RuntimeError (
515
- "no suitable ruff invocation could be found (executable, python module)"
514
+ log . error (
515
+ "No suitable ruff invocation could be found (executable, python module). "
516
516
)
517
+ cmd = []
517
518
518
519
return cmd
519
520
@@ -557,7 +558,7 @@ def run_ruff(
557
558
558
559
log .debug (f"Calling { cmd } on '{ document_path } '" )
559
560
p = Popen (cmd , stdin = PIPE , stdout = PIPE )
560
- (stdout , stderr ) = p .communicate (document_source .encode ())
561
+ (stdout , _ ) = p .communicate (document_source .encode ())
561
562
562
563
if p .returncode != 0 :
563
564
log .error (f"Ruff returned { p .returncode } != 0" )
You can’t perform that action at this time.
0 commit comments