Skip to content

Commit 25ed034

Browse files
committed
Keep exception chain
1 parent 4758de5 commit 25ed034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylsp_black/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def format_text(*, text, config):
6565
) as e:
6666
# errors will show on lsp stderr stream
6767
logger.error("Error formatting with black: %s", e)
68-
raise black.NothingChanged
68+
raise black.NothingChanged from e
6969

7070

7171
def load_config(filename: str) -> Dict:

0 commit comments

Comments
 (0)