Skip to content

Commit 32a7a21

Browse files
committed
make try-except more general
1 parent 98bf677 commit 32a7a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp_ruff/ruff_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def run_ruff_lint(ruff_executable: str, document: Document, arguments: list) ->
9797
log.error(f"Error running ruff: {stderr.decode()}")
9898

9999
return stdout.decode()
100-
except FileNotFoundError as e:
100+
except Exception as e:
101101
# Ruff doesn't yet support calling with python -m ruff,
102102
# see https://github.com/charliermarsh/ruff/issues/593
103103
log.error(f"Error running {ruff_executable}: {e}")

0 commit comments

Comments
 (0)