Skip to content

Commit c4709d2

Browse files
committed
Add permission check before configuration11
1 parent c57bad6 commit c4709d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pip/_internal/configuration.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ def save(self) -> None:
216216
parser.write(f)
217217
except IOError as error:
218218
raise ConfigurationError(
219-
"An error occurred while writing to the configuration file: {0}\nError message: {1}".format(fname, error)
219+
"An error occurred while writing to the configuration file: {0}\n \
220+
Error message: {1}".format(fname, error)
220221
)
221222

222223
#

0 commit comments

Comments
 (0)