We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a202a commit 303654cCopy full SHA for 303654c
pylint/config/__init__.py
@@ -91,8 +91,15 @@
91
except OSError:
92
pass
93
# Create spam prevention file for today
94
- with open(spam_prevention_file, "w", encoding="utf8") as f:
95
- f.write("")
+ try:
+ with open(spam_prevention_file, "w", encoding="utf8") as f:
96
+ f.write("")
97
+ except Exception: # pylint: disable=broad-except
98
+ # Can't write in PYLINT_HOME ?
99
+ print(
100
+ "Can't write the file that was supposed to "
101
+ f"prevent pylint.d deprecation spam in {PYLINT_HOME}."
102
+ )
103
104
105
def _get_pdata_path(base_name, recurs):
0 commit comments