Skip to content

Commit 0a2b82d

Browse files
authored
Fix formatting a log message (#122)
1 parent 534b6b5 commit 0a2b82d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: .pylintrc

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ disable =
1818
too-many-instance-attributes,
1919
import-error,
2020
consider-using-f-string,
21+
logging-fstring-interpolation
2122

2223
[REPORTS]
2324

Diff for: pylsp/plugins/_resolvers.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ def resolve(self, completion):
8181
sig = completion.get_signatures()
8282
return self.callback(completion, sig)
8383
except Exception as e: # pylint: disable=broad-except
84-
log.warning(
85-
'Something went wrong when resolving label for {completion}: {e}',
86-
completion=completion, e=e
87-
)
84+
log.warning(f'Something went wrong when resolving label for {completion}: {e}')
8885
return self.resolve_on_error
8986

9087

0 commit comments

Comments
 (0)